Minishares Link Scrubber

This removes shr77 redirections from Minishares.com

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name       Minishares Link Scrubber
// @version    0.1
// @description  This removes shr77 redirections from Minishares.com
// @namespace  https://greatest.deepsurf.us/users/2329-killerbadger
// @match      *.minishares.org
// @match      *.minishares.org/*
// @match      *.minirlss.net/*
// ==/UserScript==

var links = document.links;
for( i=0; i<document.links.length; i++ )
{
 	var pattern = /http:\/\/shr77.com\/[0-9]*\/interstitial/;
    if(pattern.test(document.links[i].href) )
    {
        //replaces link with only the actual link (part after interstitial)
        document.links[i].href = document.links[i].href.substr(document.links[i].href.indexOf("interstitial")+13);
    }
}