Unionfansub Kill Adf.ly

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

目前為 2017-03-25 提交的版本,檢視 最新版本

// ==UserScript==
// @name        Unionfansub Kill Adf.ly
// @namespace   Unionfansub Kill Adf.ly
// @include     http://*unionfansub.com/*
// @description Kill Unionfansub ADF.LY, facebook api and google plus.
// @version     0.7a
// @grant       none
// ==/UserScript==
/* Fuck Union ADF.LY */
/* Changes */
/* v0.1  : Remove Facebook api and Google Plus, Remove Script ADF.LY */
/* v0.2a : AutoUpdate, StopRedirect ADF.LY (Remove Scripts ADF.LY and site ADF.LY */
/* v0.2b : Remove AutoUpdate */
/* v0.3b : Fix StopRedirect */
/* v0.5 : Fix mega:/// */
/* v0.6 : Fix/change mega.co.nz to mega.nz */
/* v0.7a : New Parches direct link download "only zip". note: not working in parche page only work in list page */

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';
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址