-
-
Save riesentoaster/235f84394f045a4229aa0725ad7ffc3d to your computer and use it in GitHub Desktop.
redirects the youtube front-page to the subscription page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//if (new RegExp(["m.youtube.com/feed/explore/", "m.youtube.com"].map(e => "http(s?):\\/\\/"+e+"(\\/)?(\?.*)?").join("|")).test(location.href)) location.href="https://m.youtube.com/feed/subscriptions" | |
new MutationObserver(function(mutations) { | |
if (new RegExp(["m.youtube.com/feed/explore", "m.youtube.com", "www.youtube.com"].map(e => "(^http(s)?:\\/\\/"+e+"(\\/)?(\\?.*)?$)").join("|")).test(location.href)) location.href="https://m.youtube.com/feed/subscriptions" | |
}).observe(document, {subtree: true, childList: true}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment