Comments (13)
New version (v1.1.3) that includes that change is pending review on the stores. Please let me know if you encounter any issues with it.
from privacy-redirect.
Found the problem, I misinterpreted the way that the browser.webRequest.onBeforeRequest.addListener()
filters worked.
Because I am only listening for requests from specific domains (twitter.com
, youtube.com
, etc.) I am missing any requests from iframes that are embedded within another site as they originate from whichever site they are embedded in and so aren't matched by my filters. Even though the request is for a domain in my filters list it's originUrl
is something else and it is this field that the filters are matched on (well either originUrl
or documentUrl
).
So it appears in order to resolve this issue I do indeed have to listen for <all_urls>
, bit of a bummer, doesn't seem to be any way around it.
from privacy-redirect.
It works for me now, thanks a lot!
from privacy-redirect.
Hello @funnyflowerpot!
Thanks for the feedback and code examples, I'll see what I can put together, this plugin is still pretty basic, I'll put some more time into working out this issue.
Do you happen to have the URL of the original page that includes the broken embedded videos that I can use for troubleshooting and testing the fix? I'm sure I can find one myself but I want to make sure I'm addressing the specific issue you are experiencing.
from privacy-redirect.
I have the same issue, example on: https://www.reddit.com/r/videos/
from privacy-redirect.
Hey @SimonBrazell, thanks for the response.
I rechecked and I believe this applies to any embedded video. I confirm the example by @ToughGuyKunio. You can seem to pick any video, like this or this (click on "Get started") for example.
from privacy-redirect.
@funnyflowerpot looks to be specific to Firefox, I just visited the link supplied by @ToughGuyKunio above using Ungoogled Chromium and the embedded videos load, although not all, some display this message - The media could not be loaded, either because the server or network failed or because the format is not supported.
I'm still not sure what the root cause of this issue is yet, I tried using the code in the repo you supplied but the issue was still present on Firefox.
from privacy-redirect.
I tried this Invidious Redirect extension fork (code). I use Firefox 72 on Manjaro Linux. All embedded videos works (except those that don't work on main invidio.us site). If it helps.
from privacy-redirect.
Thanks @ToughGuyKunio, I tried a few variations on that code you posted just now to no avail, might need to spend some more time on this to figure it out. One difference I can see is that the background script on the other repo listens for requests from all urls
and only for main_frame
and sub_frame
types while this extension listens for only targeted domains and more types so perhaps there is something in that...
from privacy-redirect.
Okay so it seems I can fix this by listening for "<all_urls>"
instead of the current targeted list:
"*://twitter.com/*", "*://www.twitter.com/*", "*://mobile.twitter.com/*", "*://youtube.com/*", "*://www.youtube.com/*", "*://youtube-nocookie.com/*", "*://www.youtube-nocookie.com/*", "*://m.youtube.com/"
And limiting the request types to "main_frame", "sub_frame"
instead of:
"main_frame", "sub_frame", "stylesheet", "script", "image", "object", "xmlhttprequest", "other"
.
But one of the aims I had with this extension was to do it with minimal permissions, giving the extension access to all URLs seems like overkill, maybe I should keep looking...
from privacy-redirect.
Glad to hear, lets hope that it gets approved on the Chrome store now, changing the permissions means it has to go through the review process... still waiting for it to be reviewed.
from privacy-redirect.
Thanks a lot @SimonBrazell for the quick responses! Works for me, too!
from privacy-redirect.
No worries, just noticed the update went live on the Chrome store today also.
from privacy-redirect.
Related Issues (20)
- Uh...sketch (dead domains, nothing works, yada yada) HOT 1
- Request: add ?useskin=vector for wikiless links to fix layout breakage
- [Apple App Store] Please Add More Alternate Reddit Endpoints
- Outdated Info on readme.md
- Redirecting to popular page
- Youtube links do not redirect HOT 3
- Feature Request: redirect for imdb
- Nitter not delivering
- Feature Request: gothub
- Feature Request: Add Freexiv
- Being redirected to broken links HOT 1
- allow youtube homepage only HOT 4
- use Farside redirection list & keep it up to date
- Request: XUL version
- Embedded autoplay cannot be turned off HOT 1
- Extension not available on FF Android
- Feature Request: Premii (Reddit)
- This repo is not maintained (2024) HOT 2
- Looking to work on this project again HOT 7
- Privacy Redirect Userscript Edition
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from privacy-redirect.