Greasy Fork

Greasy Fork is available in English.

Ad remover for joyreactor.cc

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

目前为 2016-09-09 提交的版本。查看 最新版本

// ==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 15
// @license MIT
// @run-at  document-body
// @grant   none
// ==/UserScript==

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

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