Skip to content

Instantly share code, notes, and snippets.

@adamdicarlo
Last active December 17, 2022 20:00
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 adamdicarlo/1031854c9254585f8014a14b6d0f498e to your computer and use it in GitHub Desktop.
Save adamdicarlo/1031854c9254585f8014a14b6d0f498e to your computer and use it in GitHub Desktop.
Bulwer-Lytton 1990s pages on Wayback machine reformatter for readability
;(function(){
document.body.background=''
document.body.style.margin='4em auto'
document.body.style.fontSize='16px'
document.body.style.maxWidth='50em'
var style = document.createElement("STYLE")
style.innerHTML = `
dd {
font-weight: normal;
margin: 1em 0 0 0;
}
h3 {
font-size: 24px;
margin: 3em 0 0 0;
}
`
document.body.appendChild(style)
})();
javascript:'use%20strict';void%20function(){document.body.background=%22%22,document.body.style.margin=%224em%20auto%22,document.body.style.fontSize=%2216px%22,document.body.style.maxWidth=%2250em%22;var%20a=document.createElement(%22STYLE%22);a.innerHTML=%22\n%20%20dd%20{\n%20%20%20%20font-weight:%20normal;\n%20%20%20%20margin:%201em%200%200%200;\n%20%20}\n%20%20h3%20{\n%20%20%20%20font-size:%2024px;\n%20%20%20%20margin:%203em%200%200%200;\n%20%20}\n%22,document.body.appendChild(a)}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment