Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Drop this into the console of any website. Generally the better the design, the less changes when you add this.
// instant site improver
import('https://tomhodgins.github.io/domforever/index.vanilla.js').then(({populate, tag}) =>
populate(
document.head,
tag('meta', {name: 'viewport', content: 'width=device-width, initial-scale=1'}, [],
tag('style', {}, `
* {
box-sizing: border-box;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-kerning: auto;
}
html {
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
}
`)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.