Ad remover for joyreactor.cc

Removes yellow banner with an offer to disable AdBlock on joyreactor.cc

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name Ad remover for joyreactor.cc
// @description Removes yellow banner with an offer to disable AdBlock on joyreactor.cc
// @description:ru Убирает желтую плашку с предложением отключить AdBlock на joyreactor.cc
// @namespace joyreactor_cc
// @include http://joyreactor.cc/*
// @include https://joyreactor.cc/*
// @include http://*.reactor.cc/*
// @include https://*.reactor.cc/*
// @version 18
// @license MIT
// @run-at  document-body
// @grant   none
// ==/UserScript==

window.document.write = function () {};

var prependOld = window.jQuery.fn.prepend;
window.jQuery.fn.prepend = function (str) {
    if (typeof str == 'string' && unescape(str).indexOf('/donate') != -1) {
        return this;
    }
    prependOld.apply(this, arguments);
};

var domManipOld = window.jQuery.fn.domManip;
window.jQuery.fn.domManip = function (args) {
    if (typeof args[0] == 'string' && unescape(args[0]).indexOf('/donate') != -1) {
        return;
    }
    domManipOld.apply(this, arguments);
};

var ajaxOld = window.jQuery.ajax;
window.jQuery.ajax = function (p) {
    if (p.url.indexOf('show.ctrmanager.com') == -1) {
        ajaxOld.apply(this, arguments);
    }
};

// отключаем открытие всякого рекламного говна в новых окнах/вкладках
window.VisitWeb = null;
window.Joyreactor.show_ads = 1;

$(document).ready(function () {
    window.CTRManager.show = function () {};
});