Skip to content

Instantly share code, notes, and snippets.

@NoahCardoza
Created August 6, 2021 18:19
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 NoahCardoza/de540ef910209118b99e83f4322e53ba to your computer and use it in GitHub Desktop.
Save NoahCardoza/de540ef910209118b99e83f4322e53ba to your computer and use it in GitHub Desktop.
Canvas: Normalize CSS

Normalize CSS

I once had a teacher that couldn't help but use a lot of bold text and awful colors for every announcement.

This seemed to help.

$$('.user_content [style*="color"]').map(e => {
e.style.color = null
})
$$('.user_content [style*="font-family"]').map(e => {
e.style.fontFamily = null
})
$$('.user_content [style*="font-size"]').map(e => {
e.style.fontSize = null
})
$$('.user_content strong').map(e => {
e.parent
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment