code-charity / code-charity/youtube
🐞Youtube shorts appear when i search even though i disabled them from search bar
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4.6k
- Forks
- 996
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 7
Description
Concise Description
Like, even tough i got the option enabled it stills end up putting shorts field at some point. it works on homepage but not in youtube search area.
Browser/s
Firefox
Other Browser:
No response
'Steps to reproduce' - Which of our features is required for the bug to happen?
I enabled the option in Youtube search -> Remove Shorts reel from search results and when i search anything like a book title "コンビニ人間" at the middle of the page the short sectio appears
Since when?
Since i installed the extension (some minutes ago)
Does the bug still happen when you log out of YouTube?
Yes
..No? Then please paste your yt.config_.EXPERIMENT_FLAGS. Twice (With the error & Without)
No response
Are any errors or related log-messages shown in the Browser-Console? (F12)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at data:text/plain;base64,Cg==. (Reason: CORS request not http).Uncaught TypeError: can't access property "addEventListener", c is null b https://www.youtube.com/:1 Ub https://www.youtube.com/s/_/ytmainappweb/_/js/k=ytmainappweb.kevlar_base.en_US.u4v6QaayaGI.es5.O/am=AAAAAQ/d=0/br=1/rs=AGKMywFSJN229JAyErIcF7izY8ZHBhDv7A:2114 bb https://www.youtube.com/s/_/ytmainappweb/_/js/k=ytmainappweb.kevlar_base.en_US.u4v6QaayaGI.es5.O/am=AAAAAQ/d=0/br=1/rs=AGKMywFSJN229JAyErIcF7izY8ZHBhDv7A:1056 Ub https://www.youtube.com/s/_/ytmainappweb/_/js/k=ytmainappweb.kevlar_base.en_US.u4v6QaayaGI.es5.O/am=AAAAAQ/d=0/br=1/rs=AGKMywFSJN229JAyErIcF7izY8ZHBhDv7A:2114 update https://www.youtube.com/s/_/ytmainappweb/_/js/k=ytmainappweb.kevlar_base.en_US.u4v6QaayaGI.es5.O/am=AAAAAQ/d=0/br=1/rs=AGKMywFSJN229JAyErIcF7izY8ZHBhDv7A:13390 www.youtube.com:1:4989 b https://www.youtube.com/:1 Ub https://www.youtube.com/s/_/ytmainappweb/_/js/k=ytmainappweb.kevlar_base.en_US.u4v6QaayaGI.es5.O/am=AAAAAQ/d=0/br=1/rs=AGKMywFSJN229JAyErIcF7izY8ZHBhDv7A:2114 bb https://www.youtube.com/s/_/ytmainappweb/_/js/k=ytmainappweb.kevlar_base.en_US.u4v6QaayaGI.es5.O/am=AAAAAQ/d=0/br=1/rs=AGKMywFSJN229JAyErIcF7izY8ZHBhDv7A:1056 Ub https://www.youtube.com/s/_/ytmainappweb/_/js/k=ytmainappweb.kevlar_base.en_US.u4v6QaayaGI.es5.O/am=AAAAAQ/d=0/br=1/rs=AGKMywFSJN229JAyErIcF7izY8ZHBhDv7A:2114 update https://www.youtube.com/s/_/ytmainappweb/_/js/k=ytmainappweb.kevlar_base.en_US.u4v6QaayaGI.es5.O/am=AAAAAQ/d=0/br=1/rs=AGKMywFSJN229JAyErIcF7izY8ZHBhDv7A:13390Content-Security-Policy: The page’s settings blocked an inline script (script-src-elem) from being executed because it violates the following directive: “script-src 'nonce-PfL4A9du-bctFQ5MLbp9Lw' 'unsafe-inline'”. Consider using a hash ('sha256-QqlA210j9eibyZ3VXu/gMd0MXJ+gEB1XATbX/AeFdYU=') or a nonce. 1a4a8550-312c-4f52-ae31-847110b1d5d5:19:51Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://studio.youtube.com’) does not match the recipient window’s origin (‘https://www.youtube.com’).Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at data:text/plain;base64,Cg==. (Reason: CORS request not http).Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at data:text/plain;base64,Cg==. (Reason: CORS request not http).
Tested as the only active extension? (incognito mode or another browser users):
Yes
Expected preferred behavior:
No response
ImprovedTube Version
No response
Your Settings (From the Extension's ⋮-Hamburger menu > Settings > Backup & reset > Export settings)
No response
Your YouTube-Document
No response
OS / Device:
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in Firefox with only the extension active by enabling “Remove Shorts reel from search results” and searching YouTube for “コンビニ人間.” Trace the YouTube search-results handling and compare it with the homepage behavior; done means Shorts sections no longer appear in search results when the setting is enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100