Greasy Fork is available in English.

Unionfansub Kill Adf.ly

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

2016-04-24 일자. 최신 버전을 확인하세요.

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==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.3b
// @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 */


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