Greasemonkey: remove 9gag 3 minute overlay
Simply create a user script on greasemonkey with the following code.
// ==UserScript==
// @name Remove idle
// @namespace com.pncolvr
// @include http://9gag.com/*
// @include /*.9gag.com/*
// ==/UserScript==
function removeElement(elementName) {
var el = document.getElementById(elementName);
if (el == null) {
el = document.getElementsByClassName('section-nav')[0];
}
el.parentNode.removeChild(el);
console.log('removed idle ' + elementName);
}
window.onload = function (e) {
removeElement('jsid-idle-popup-container');
removeElement('overlay-container');
}
Enjoy 9gag without the annoying overlay. :)
Written by Pedro Oliveira
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Js
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#