Sidebar for YouTube™
-
tricktraps last edited by
shadow2531
•
3y ago
It appears that any site that sends the x-frame-options: SAMEORIGIN header won't load in a sidebar extension that uses an iframe to load the site because Opera is following that security directive and blocking the loading of the site.Installing https://chrome.google.com/webstore/detail/ignore-x-frame-headers/gleekbfjekiniecknbkamfmkohkpodhe/related?hl=en-US might help. Make sure to enable it for search page results too so it works for Google sites. If that works for you, you should try to set the extension to only work on the sites used by your sidebar apps.
-
kyle899 last edited by
I would recommed if you can watch stuff in the background and don't have to keep to on all the time
-
aliciahanie last edited by
Unfortunately not working 6/20/2024. Still getting the Youtube is blocked/Youtube refused to connect. Also using with Opera.
-
Notsostupid last edited by
To fix the blocked error, install this extension from the chrome webstore on top of this one: https://chromewebstore.google.com/detail/sidebar-for-youtube/ffnhapbeebfgpgkfoacmekkjnnmkgbbo
-
burnout426 Volunteer last edited by
You can create your own extension that does what that extension does.
Create a folder on your desktop named "no frame-options headers for youtube".
Then, create the following 2 files in that folder:
manifest.json:
{ "manifest_version": 3, "name": "SFY Helper", "version": "0.1", "description": "Fix the Sidebar for Youtube Opera Extension by remove frame-options headers", "permissions": [ "declarativeNetRequest", "declarativeNetRequestWithHostAccess" ], "host_permissions": [ "*://*.youtube.com/*" ], "declarative_net_request": { "rule_resources": [ { "enabled": true, "id": "headers", "path": "rules.json" } ] } }
rules.json:
[ { "id": 1, "condition": { "urlFilter": "||youtube.com^", "resourceTypes": [ "sub_frame" ] }, "action": { "type": "modifyHeaders", "responseHeaders": [ { "operation": "remove", "header": "frame-options" }, { "operation": "remove", "header": "x-frame-options" } ] } } ]
Then, goto the URL
opera://extensions
, turn on developer mode, click "load unpacked" and point it to that folder on your desktop. -
SetarcosDrol last edited by
@tricktraps: yeh but the point was I wanted to use opera browser not chrome. Will this liknk still fix the Opera Browser side bar??
-
SetarcosDrol last edited by
@notsostupid: It did work for Opera!!! Thanks so much! They should hire you as their comment reader and fixer ! haha
-
otirrub last edited by
@burnout426: I did this and I'm still getting "ERR_BLOCKED_BY_RESPONSE" any ideas?
-
burnout426 Volunteer last edited by
@otirrub Hmm, I just checked it all again by following my steps and coping the code from my post. Still works for me. Do you get any errors shown next to the extension at the URL
opera://extensions
?Any difference if you restart Opera? Any difference if disable your other extensions one by one to test if one is interfering?
Does it work fine in a test standalone installation?
Look at the host_permissions in manifest.json. If you're in a country where it's youtube.fr or something, you might have to adjust it so that it will match.