snuffyDev / Beatbump

Alternative YouTube Music frontend built with Svelte/SvelteKit 🎧
https://beatbump.io/
GNU Affero General Public License v3.0
1.07k stars 89 forks source link

Predirect extension for redirecting to alternative frontends #223

Open libreom opened 10 months ago

libreom commented 10 months ago

Hi, I developed an extension Predirect, It can redirect YouTube music to beatbump and many other sites to alternative frontends. It is modern, manifest v3 based and requires minimal permissions(even for embeds). A comparison to similar extensions is here https://github.com/libreom/predirect/blob/main/COMPARISON.md It would be great if it is mentioned in your GitHub. Store links for installation are in github I would be happy to answer more questions here

davidcollini commented 10 months ago

I just found out about your project, and I'm wondering if Predirect exposes any information to the main domain (ex: iP address or loading any JavaScript) before redirecting the user to the site's frontend?

libreom commented 10 months ago

@davidcollini No it doesn't expose IP as declarativeNetRequest rules modify network requests before they make any connection and even dns request to original url.

davidcollini commented 10 months ago

@manerakai what are your thoughts on Predirect's approach to redirecting sites on V3? I know you have an explanation for why Libredirect isn't on v3 here, but I'm wondering what specifically prevents you from doing so

ManeraKai commented 10 months ago

We have osm redirection for example. When you're redirecting an address value from google maps, we need to make a request to nomination.openstreetmap.org and get a response back of lat and lon. We add them to the url and then redirect. Is this possible with your approach?

libreom commented 10 months ago

@ManeraKai I am not familiar with OSM redirection, perhaps you can tell multiple approaches and api you use to redirect Google maps to OSM. But it should be possible with manifest V3 webrequest api as long as blocking is not needed.