Last active
April 5, 2022 08:41
-
-
Save saneef/5b145fe058f9d2131b84750b689be971 to your computer and use it in GitHub Desktop.
Set max-width style of <p> and <li> tags to 60ch. Making long texts easier to read
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
const styles = `p,li {max-width: 60ch !important;}`; | |
const style = document.createElement("style"); | |
document.head.appendChild(style); | |
style.appendChild(document.createTextNode(styles)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copy above snippet and generate bookmark let at https://caiorss.github.io/bookmarklet-maker/