{
"runSettings": {
"temperature": 0.5,
"model": "models/gemini-2.5-pro-preview-05-06",
"topP": 0.95,
"topK": 64,
"maxOutputTokens": 65536,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.fetch = new Proxy(window.fetch, { | |
apply(target, thisArg, argArray) { | |
let promise = Reflect.apply(target, thisArg, argArray) | |
let url = argArray[0] instanceof Request ? argArray[0].url : argArray[0] | |
if (url.includes('reel_item_watch')) { | |
console.log('intercepting reel_item_watch') | |
return promise.then(response => { | |
response.clone().json().then(json => { | |
let menuItems = json.overlay.reelPlayerOverlayRenderer.menu.menuRenderer.items | |
let openAppItem = menuItems.find(item => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.from( | |
document.querySelectorAll('#items.yt-multi-page-menu-section-renderer ytd-compact-link-renderer[compact-link-style="compact-link-style-type-selection-menu"]'), | |
el => el.data.serviceEndpoint.signalServiceEndpoint.actions[0].selectLanguageCommand.hl | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 3, | |
"name": "Hide YouTube Shorts", | |
"description": "Hides YouTube Shorts", | |
"version": "1.0", | |
"content_scripts": [ | |
{ | |
"matches": [ | |
"https://www.youtube.com/*", | |
"https://m.youtube.com/*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getState() { | |
let $reactRoot = document.querySelector('#react-root') | |
let wrapped = $reactRoot.firstElementChild['wrappedJSObject'] || $reactRoot.firstElementChild | |
let reactPropsKey = Object.keys(wrapped).find(key => key.startsWith('__reactProps')) | |
if (reactPropsKey) { | |
let state = wrapped[reactPropsKey].children?.props?.children?.props?.store?.getState() | |
if (state) return state | |
warn('React state not found') | |
} else { | |
warn('React prop key not found') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵 | |
🔵🟡🟡🟡🔵🔵🟡🔵🔵🔵🟡🟡🔵🟡🔵🟡🔵 | |
🔵🟡🔵🔵🔵🟡🔵🟡🔵🟡🔵🔵🔵🟡🔵🟡🔵 | |
🔵🟡🟡🟡🔵🟡🟡🟡🔵🔵🟡🔵🔵🔵🟡🔵🔵 | |
🔵🟡🔵🔵🔵🟡🔵🟡🔵🔵🔵🟡🔵🔵🟡🔵🔵 | |
🔵🟡🟡🟡🔵🟡🔵🟡🔵🟡🟡🔵🔵🔵🟡🔵🔵 | |
🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let $segments = document.querySelector('.ytd-transcript-search-panel-renderer #segments-container') | |
let sections = [] | |
let parts = [] | |
for (let $el of $segments.children) { | |
if ($el.tagName == 'YTD-TRANSCRIPT-SECTION-HEADER-RENDERER') { | |
if (parts.length > 0) { | |
sections.push(parts.join(' ')) | |
parts = [] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Nav item */ | |
a[title="Shorts"], | |
/* Video shelf in Home and Subscriptions */ | |
ytd-rich-shelf-renderer[is-shorts], | |
/* Video shelf in Search */ | |
ytd-reel-shelf-renderer { | |
display: none !important; | |
} | |
@supports selector(:has(*)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
entities = $('#react-root')._reactRootContainer._internalRoot?.current?.memoizedState?.element?.props?.children?.props?.store?.getState()?.entities?.users?.entities | |
users = {} | |
for (let user of Object.values(entities)) { | |
users[user.screen_name] = user | |
} |
NewerOlder