Last active
October 3, 2016 14:10
-
-
Save EO2/5e3d83905455d94a3c2d619d159be220 to your computer and use it in GitHub Desktop.
Remove annoying fullscreen clickjack ads on icefilms.info
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 Icefilms Sanitizer | |
// @namespace eo2.icefilms.sanitize | |
// @version 0.1 | |
// @description Remove annoying fullscreen clickjack ads on icefilms.info (aka: "enough is enough") | |
// @author EO2 | |
// @match http://www.icefilms.info/ | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var divs = document.getElementsByTagName("div"); // div sections | |
var badAd = divs[divs.length-1].className; // generated className to remove (the last div) | |
document.getElementsByClassName(badAd)[0].remove(); // remove Bad Ad! | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment