Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ivan/d0fcee41580e046534a080a7d1ff373c to your computer and use it in GitHub Desktop.

Select an option

Save ivan/d0fcee41580e046534a080a7d1ff373c to your computer and use it in GitHub Desktop.
uBlock Origin filter to unjustify all justified text
! Generic rule to unjustify all justified text. Yes, you really need both rules.
! Test page: https://www.addameer.org/israeli_military_judicial_system/administrative_detention
! Test page: https://en.wikipedia.org/wiki/Typographic_alignment (needs !important)
! Test page: https://www.gwern.net/Screwfly (needs !important)
*#$#*:matches-css(text-align: justify) { text-align: left !important; }
*#$#*:matches-css(text-align: left) { text-align: left !important; }
@ivan
Copy link
Author

ivan commented Aug 29, 2022

Fixing just the paragraphs elements with p instead of * probably has less performance impact:

*#$#p:matches-css(text-align: justify) { text-align: left !important; }
*#$#p:matches-css(text-align: left) { text-align: left !important; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment