Last active
May 14, 2019 14:48
-
-
Save lnorton89/096f434f952aa90add0f45b8890cd9eb to your computer and use it in GitHub Desktop.
This file contains 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 The Southern Illinoisian | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Tell silly newspapers that their business model is dead! Adapt or DIE! | |
// @author You | |
// @match https://thesouthern.com/* | |
// @require http://code.jquery.com/jquery-3.3.1.min.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var $ = window.jQuery; | |
var waitForEl = function(selector, callback) { | |
if ($(selector).length) { | |
callback(); | |
} else { | |
setTimeout(function() { | |
waitForEl(selector, callback); | |
}, 100); | |
} | |
}; | |
waitForEl('.fc-dialog-container', function() { | |
$('.fc-dialog-container').remove(); | |
$('.fc-dialog-overlay').remove(); | |
$('.fc-ab-root').remove(); | |
$('body').attr('style', ''); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment