/youtube-redirect.js Secret
Last active
April 8, 2022 11:04
Star
You must be signed in to star a gist
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