AnIppo

Internet positif is fuckin annoying

目前為 2016-05-09 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         AnIppo
// @namespace    none
// @version      0.3
// @description  Internet positif is fuckin annoying
// @author       Chezt
// @connect      *
// @grant        none
// @match        *://*/*
// ==/UserScript==

if(window.location.hostname == "internetpositif.uzone.id") {
    if(document.referrer !== null) {
        history.replaceState(null, null, "http://" + window.location.hostname + "#RealUrl=" + document.referrer);
        document.title = "Inet positip embe :/";

        var body = document.body;
        var text = "Inetpositip berulah, </br> gunain proxy gih </br> ini link aslinya </br> <h3> <a href='" + document.referrer +"'>" + document.referrer + "</a> </h3>";

        if(body === null) {
            document.createElement("body").innerHTML = text;
        } else {
            body.innerHTML = text;
        }
    }
}

(function() {
    'use strict';
    var _checkTryAnipoLimit = 10; // Limit Try
    var _checkTryAnipoSpeed = 500; // value / 1000 = detik
    var _checkTryAnipoA = 0;
    var _checkTryAnipoB = 0;
    var cfs_script;
     function inetPositifEmbe() {
         if(typeof cfs_closed === "undefined") {
             return;
         }
         var _instifBody = document.body;
         var _instifCfs = document.getElementById("cfs_top_div");
         var _asli = document.getElementById("cfs_div_2");
         if(_instifCfs !== null)
            _instifCfs.remove();
         if(_asli !== null)
            _instifBody.innerHTML = _asli.innerHTML;
         if(_instifCfs !== null && _asli !== null) {
             _instifCfs.remove();
             _instifBody.innerHTML = _asli.innerHTML;
             return;
         }


         return setTimeout(_checkVarInetPositif, _checkTryAnipoSpeed / 2);
     }
    document.onreadystatechange = function () {
        if(document.readyState === 'complete') {
            return setTimeout(_checkVarInetPositif, _checkTryAnipoSpeed, true);
        }
    };
    // cek jika asyc inetpositip udah kelar
    function _checkVarInetPositif(isReady) {
        isReady = typeof isReady !== 'undefined' ? isReady : false; // Gak bisa ES6 :(
        cfs_script = null;
        if(typeof cfs_closed !== "undefined") {
            cfs_script = null;
            cfs_script_r = null;
            cfs_closed = 0;
            inetPositifEmbe(); // Cek jika sudah terlanjur ke inject :<
            return;
        }
        if(!isReady) {
        _checkTryAnipoB++;
        if(_checkTryAnipoB > _checkTryAnipoLimit)
            return;
        } else{
        _checkTryAnipoA++;
        if(_checkTryAnipoA > _checkTryAnipoLimit)
            return;
        }
        return setTimeout(_checkVarInetPositif, _checkTryAnipoSpeed);
    }
    _checkVarInetPositif();
    // Coba cek cepet jika variable sudah ada maka override
    cfs_script = (function() {
        if(typeof cfs_closed !== "undefined")
            GM_log("ffs spidol stop inject ur fuckin ads");
    })();
})();