Last active
September 8, 2015 07:53
-
-
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
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 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