Skip to content

Instantly share code, notes, and snippets.

@123jimin
Created December 30, 2015 07:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 123jimin/2587ff71acf02860d340 to your computer and use it in GitHub Desktop.
Save 123jimin/2587ff71acf02860d340 to your computer and use it in GitHub Desktop.
SDVX.IN Adblock blocker blocker
// ==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