Last active
December 29, 2015 03:49
-
-
Save DesignStreaks/7610257 to your computer and use it in GitHub Desktop.
I have been an avid reader of .Net Magazine for a number of years. With the recent migration of all articles from .Net Magazine to CreativeBloq, the document format has become, in my opinion, a nightmare. As such, I have created this little bookmark-let that will update the page. So what does this bookmark-let do?
To put it bluntly, it removes t…
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
(function () { | |
var newSS, styles = 'body { font-size: 12px; } h1 { font-size: 1.5em !important;} h2 { font-size: 1.4em !important;} h3 { font-size: 1.3em !important;} h4 { font-size: 1.2em !important;} .page-content { width: 100%; max-width: 100%; } #page-canvas {max-width: 100%; } .content { max-width: 100% !important; } .copy { font-size: 12px; } .node .copy p {margin-bottom: 1em !important; } .geshifilter { font-size: 1em !important; } .de1 { font-family: Consolas,"Courier New",Courier,monospace !important; } .video-player { width: 535px !important; padding-bottom: 270px !important;}'; | |
if (document.createStyleSheet) { | |
document.createStyleSheet("javascript:'" + styles + "'"); | |
} | |
else { | |
newSS = document.createElement('link'); | |
newSS.rel = 'stylesheet'; | |
newSS.href = 'data:text/css,' + escape(styles); | |
document.getElementsByTagName("head")[0].appendChild(newSS); | |
} | |
var removeId = (function (i) { | |
var e = document.getElementById(i); | |
if (e === null) return; | |
e.parentNode.removeChild(e); | |
}); | |
var removeClass = (function (c) { | |
var e = document.getElementsByClassName(c); | |
if (e === null) return; | |
for (var i = 0; i < e.length; i++) { | |
e[i].parentNode.removeChild(e[i]); | |
} | |
}); | |
removeClass("sidebar"); | |
removeClass("social"); | |
removeId("header_top"); | |
removeClass("next-prev"); | |
removeClass("submitted"); | |
removeId("comments-list"); | |
removeId("comments-form"); | |
removeId("footer"); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment