Shellshock.io Remove Adblocker message

Block the adblocker message

La data de 02-08-2022. Vezi ultima versiune.

// ==UserScript==
// @name         Shellshock.io Remove Adblocker message
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Block the adblocker message
// @author       mewen25
// @match        https://shellshock.io/
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @run-at       document-start
// ==/UserScript==

var open_prototype = XMLHttpRequest.prototype.open, intercept_response = function(callback) {
  XMLHttpRequest.prototype.open = function(method, url) {
    if(url.indexOf("shellshock.js") > -1) this.isScript = true;
    this.addEventListener('readystatechange', function(event) {
     if ( this.readyState === 4 && this.isScript ) {
         var response = callback(event.target.responseText);
         Object.defineProperty(this, 'response', {writable: true});
         Object.defineProperty(this, 'responseText', {writable: true});
         this.response = this.responseText = response;
     }
    });
    return open_prototype.apply(this, arguments);
  };
};

intercept_response(function(response) {
    const ad = /((showAdBlockerVideo\(\),set).+?(?=l\(\),).{4})([A-z].+?(?=\(\)\})).+?(?=;var)/.exec(response);
    const adLine = ad[0];
    const adVar = ad[3];
    const replaceAd = `hideAdBlockerVideo(),setTimeout(()=>{${adVar}()},100))}`;
    console.log("[INJECTING] - Adblock popup block");
    return response.replace(adLine, replaceAd);
});

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元