Skip to content

Instantly share code, notes, and snippets.

@EO2
Last active October 3, 2016 14:10
Show Gist options
  • Save EO2/5e3d83905455d94a3c2d619d159be220 to your computer and use it in GitHub Desktop.
Save EO2/5e3d83905455d94a3c2d619d159be220 to your computer and use it in GitHub Desktop.
Remove annoying fullscreen clickjack ads on icefilms.info
// ==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