Skip to content

Instantly share code, notes, and snippets.

@rycuda
Last active September 8, 2015 07:53
Show Gist options
  • Save rycuda/8ce3c317c3f5472945bd to your computer and use it in GitHub Desktop.
Save rycuda/8ce3c317c3f5472945bd to your computer and use it in GitHub Desktop.
It's lovely when the article fills the page. http://imgur.com/a/2kAQC demonstrates the effect
// ==UserScript==
// @name Register bullshit removal
// @version 0.3
// @homepage https://gist.github.com/rycudasakkran/8ce3c317c3f5472945bd/edit
// @description Remove bullshit from register articles
// @match http://www.theregister.co.uk/*
// ==/UserScript==
(function() {
var hitList = [
'end_scripts',
'topbar',
'masthead',
'ad-oop-spot',
'ad-ldr-spot',
'site_nav',
'right-col',
'boot',
'footer',
'read_more_on',
'whitepapers',
'social_btns',
'story_rhs_more'
];
hitList.forEach(function(name) {
var condemned = document.getElementById(name);
condemned.parentNode.removeChild(condemned);
}
);
var content = document.getElementById('main-col');
content.style.backgroundColor = "white";
content.style.width = "auto";
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment