[ prog / sol / mona ]

prog


javashit redirect script

5 2020-01-08 21:01

I'm on FF 72.0.1 (64-bit). Running it as a Greasemonkey script

Here, see for yourself: https://files.catbox.moe/t0c4i8.mp4

The full code is this, not that I think it makes any difference:

// ==UserScript==
// @name        NewsFix
// @description Redirects news articles from The Sun, The Times and The Daily Mail to the internet archive
// @include     *thesun*
// @include     *thetimes*
// @include     *dailymail*
// @include     *reddit*
// @version     1.0
// @require  https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @grant    GM_addStyle
// @run-at document-start
// ==/UserScript==

// Variables for use throughout the script

var url = window.location.toString();

var page = true;

// Redirecting 


while (page){
   if (url.indexOf('reddit.com') != - 1) {
        location.href='https://web.archive.org/web/*/'+location.href;
     page = false;
  } 

}

I tried adding the page variable to break the loop, no luck.

15


VIP:

do not edit these