Created
December 30, 2015 07:32
-
-
Save 123jimin/2587ff71acf02860d340 to your computer and use it in GitHub Desktop.
SDVX.IN Adblock blocker blocker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name SDVX.IN ADBLOCK BLOCKER BLOCKER | |
// @namespace http://0xF.kr/ | |
// @version 0.1 | |
// @description SDVX.IN Adblock blocker blocker | |
// @author JiminP | |
// @match http://sdvx.in/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ | |
'use strict'; | |
// Your code here... | |
(function HIJACK_INSERT(b){ | |
var original = b.insertBefore; | |
var hijacked = function(elem, at){ | |
if(elem.innerHTML.includes("Adblock")){ | |
console.info("Adblock blocker blocked"); | |
return; | |
} | |
original.call(this, elem, at); | |
}; | |
b.insertBefore = hijacked; | |
})(window.document.body); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment