Unionfansub Kill Adf.ly

Kill Unionfansub ADF.LY, facebook api and google plus.

Stan na 13-08-2017. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        Unionfansub Kill Adf.ly
// @author			Blur
// @namespace   Unionfansub Kill Adf.ly
// @icon        data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAGOklEQVR4Xu1aXWhdRRCeuS0aYiI+2EToQ6JNUot/CfFJ8UF8EiliQa2lYo1/Lwp5ES0FGzXgH9pWhERMoyVJaxBKKiL6JIJN24A2VA0YbXIjimmaYiUXmyg56+5mh8ne8Xo46b2bWzxzmd3Z7N2c8307OzM5OfA/lVRSSSWVVFJJJZVUEALI1+PZOt3VQzLJtjbVT12aBDDwe3W3Nzl4JkFruybiyKVFAIMfMvbZmTMwOzMDSeTqmhpYV1Nr7YX5C9tvu3nTAJRA1kLpZK9p+nrfg88/+RhWInfceRc89Uw7ZDKZnt7e3mxbW9vR8vcAPvNZ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qiV11iL631e77m7OBWBPYCf38vIQGecQRAqWufmF1VEscAA8nOEYo1kNvEtpQITkOcB4h54B6kXAHn3I0cQKRFklEgQu0/CXhaWACVJYBbIO3h3tbKL07xHAsGXRyCyPQP0LFKyAmUBReeRcjUiIAV6apUDIfMEHRELnNH4pgVN4PkIyYyqQgZB+fBC3ry1afdY3QrCSTtL3+MdpdbORfQdAV5Ry1kmhAdIEtgnEHD5nAOH+TuMdhUdD5FaqfPcXwnwxDRnicAE0E2Sa/NR4DmrSMUQIwW08xGnPwYuPISIJFEy1qz+H0MMjoEqfwfF9+0cF0MijNF6UgG+zF6R8T1BW7lczu4yKoQTx485EvgZQm4uRzsLJ4aHxTsCc7k5FwMARo4NO9wCfNkQwCQ4a/BgP0UG+Ejb+fXCof4DFqCRwYE+UUcM9vfZndcfvX5AgC8zAuRxmJo4DW90viT+W0QyOTEBr778YkEiJycn4PVOnmfgZU6ACPri3CIAxi1UZf9AJJuciGRPMVSC9wm10H+EEgtexBtik7qrPzx4EA4PHoLVkC0PPqR1G/z918L82MjR4wCwVb8ecybUEWjXOmRuwOhKBIvk5r9lT/+ku2kCH6QOMK+kmbeyDPsrjxOkKxNz7Z/Hx777fWZ6FgDeWZU3RfX7OLfr7ml+LSW4TBvwiV+jTSWVVFJJJZVU/gGpBnocO67fiwAAAABJRU5ErkJggg==
// @include     http://*unionfansub.com/*
// @description Kill Unionfansub ADF.LY, facebook api and google plus.
// @homepageURL https://greasyfork.org/en/scripts/12169-unionfansub-kill-adf-ly
// @license     Creative Commons Attribution-ShareAlike 4.0 International License
// @version     0.8.1r
// @grant       none
// ==/UserScript==
/* License : Creative Commons Attribution-ShareAlike 4.0 International License (https://creativecommons.org/licenses/by-sa/4.0/) */
/* */
/* Icon : Double-J designs (http://www.doublejdesign.co.uk/) - License: Creative Commons (Attribution 3.0 Unported) */
/* */
/* Fuck Union ADF.LY */
/* Changes */
/* v0.8.1r : License + New Icon */

var links = document.links;
var link;
for(var i=links.length-1; i >=0; i--){
  link = links[i];
  link.href = link.href.replace('~~4dfl7SUCKS~~','#');
  link.href = link.href.replace('mega:///','http://mega.nz/');
  link.href = link.href.replace('mega.co.nz','mega.nz');
  link.href = link.href.replace('sh.st/st/22e035111b405ce11eb74e9a5c84527b/out.unionfansub.com/3096066/','');
  link.href = link.href.replace('http://foro.unionfansub.com/plusone.php?url=','');
  link.href = link.href.replace('www.facebook.com/plugins/like.php','');
  link.href = link.href.replace('adf.ly/3096066/int/','');
  link.href = link.href.replace('http://adf.ly/3096066/int/','');
  link.href = link.href.replace('http://out.unionfansub.com/js/entry.js','');
  link.href = link.href.replace('entry.js','');
  link.href = link.href.replace('http://cdn.adf.ly/static/js/entry_scriptV1.2.js','');
  link.href = link.href.replace('entry_scriptV1.2.js','');
}

function injectFunction(f){
    var script = document.createElement("script");
    script.appendChild(document.createTextNode("(" + f.toString() + ")();"));
    document.documentElement.appendChild(script);
}

var myFunc = function(){
    String.prototype.realSubstring = String.prototype.substring;
    String.prototype.substring = function(){
        //String.prototype.substring = String.prototype.realSubstring; //Change substring back if necessary.
        return "exit.html";
    };
};

injectFunction(myFunc);

var links,thisLink;
links = document.evaluate("//a[contains(@href, 'descarga.php?parche=')]",
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);
for (var i=0;i<links.snapshotLength;i++) {
    var thisLink = links.snapshotItem(i);
    thisLink.href += '&format=zip';
}