Skip to content

Instantly share code, notes, and snippets.

@rpominov
Last active December 10, 2015 18:29
Show Gist options
  • Save rpominov/4475306 to your computer and use it in GitHub Desktop.
Save rpominov/4475306 to your computer and use it in GitHub Desktop.
Help read bookmarklet
javascript:(function()%7Bvar%20script%3Ddocument.createElement(%27script%27)%3Bscript.src%3D%27https://gist.github.com/raw/4475306/readhelp.js%3F%27%2BMath.floor((%2Bnew%20Date)/(864e5))%3Bdocument.body.appendChild(script)%3B%7D)()
(function(){
if (window.helpReadStyle) {
window.helpReadStyle.parentNode.removeChild(window.helpReadStyle)
window.helpReadStyle = null
return
}
var css = '* {background: white !important; color: black !important; text-align: left !important; '
+ ' font-family: serif !important; font-size: 16px !important; line-height: 1.5 !important}'
+ 'a {color: #5200FF !important; border: none !important; text-decoration: underline !important;}'
+ 'h1, h2, h3, h4, h5, h6 {font-weight: bold !important;}'
+ 'h1 {font-size: 2em !important}'
+ 'h2 {font-size: 1.63em !important}'
+ 'h3 {font-size: 1.33em !important}'
+ 'p, h1, h2, h3, h4, h5, h6 {max-width: 600px !important}'
+ 'code, code * {font-family: Monaco, Consolas, "Lucida Console", monospace !important; '
+ ' font-size: 12px !important;}'
+ 'iframe {display:none !important}',
head = document.getElementsByTagName('head')[0],
style = document.createElement('style');
style.type = 'text/css';
if (style.styleSheet){
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}
head.appendChild(style);
window.helpReadStyle = style;
}())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment