Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name YouTube Redirector
- // @namespace http://vdoga.me/
- // @version 0.1
- // @description Automatically redirects from the new, dumb YouTube homepage to the stuff you actually want to see.
- // @match http://youtube.com/*
- // @match http://*.youtube.com/*
- // @match https://youtube.com/*
- // @match https://*.youtube.com/*
- // ==/UserScript==
- var url = "http://www.youtube.com/feed/subscriptions/u";
- var redirecturls = ["http://youtube.com/","http://www.youtube.com/","https://youtube.com/","https://www.youtube.com/"];
- if(redirecturls.indexOf(window.location)!=-1)
- window.location = url;
- var links = document.links;
- for(i=0;i<links.length;i++)
- if(redirecturls.indexOf(links[i].href)!=-1)
- links[i].href=url;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement