Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lnorton89/096f434f952aa90add0f45b8890cd9eb to your computer and use it in GitHub Desktop.
Save lnorton89/096f434f952aa90add0f45b8890cd9eb to your computer and use it in GitHub Desktop.
// ==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