Thunderarea / music-mode-for-youtube

Browser extension for blocking the video and playing only the audio on YouTube and YouTube Music
GNU General Public License v3.0
29 stars 0 forks source link

Try to remove the permission "tabs" #13

Open Thunderarea opened 5 months ago

Thunderarea commented 5 months ago

The permission "tabs" throws a warning to the users who install the extension saying that the extension can "Read your browsing history" https://developer.chrome.com/docs/extensions/develop/concepts/permission-warnings#permissions_with_warnings

Permission "tabs" is used to monitor when a URL changes and adjust the extension's functionality accordingly (remove qapages or sspages settings etc, start blocking videos/images if it is a YouTube URL or stop if it is not). It is used here

Try to implement this with popstate listener in the content scripts (to inform the background script for changes in the URL or if a new page is YouTube or YouTube Music) and beforeunload listener (to inform the background script that this page was removed/changed to something else)

Thunderarea commented 5 months ago

You cannot listen for URL changes in YouTube...