Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Yahoo News Redirector
- // @version 1.0
- // @description Custom URL Redirects.
- // @match https://www.yahoo.com/*
- // @match http://www.yahoo.com/*
- // @match https://news.yahoo.com/*
- // @match http://news.yahoo.com/*
- // @run-at document-start
- // @namespace 9561dd6022dc8fab28c840cacf9be85a
- // @icon https://monkeyguts.com/icon/93.png
- // ==/UserScript==
- redirectToPage("https://news.yahoo.com", "https://news.google.com");
- redirectToPage("http://news.yahoo.com", "https://news.google.com/");
- redirectToPage("https://www.yahoo.com", "https://news.google.com");
- redirectToPage("http://www.yahoo.com", "https://news.google.com");
- function redirectToPage(page1, page2){
- if(window.location.href.indexOf(page1) != -1){
- window.location.href = page2;
- }
- }
Add Comment
Please, Sign In to add comment