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/*
// @include     http://adf.ly/3096066/int/*
// @description Kill Unionfansub ADF.LY, facebook api and google plus.
// @version     0.6
// @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 */


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);

QingJ © 2025

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