github-wide icon indicating copy to clipboard operation
github-wide copied to clipboard

Most CSS styles can be converted to uBlock Origin's format nowadays

Open DandelionSprout opened this issue 6 years ago • 8 comments

A couple or three years ago, uBlock Origin and AdGuard began to include support for editing CSS values, so indeed I believe that almost all Stylus userstyles (except for those that rely on external images) can be converted to their format with a bit of Ctrl+H. This way people won't need to use userstyle-specific extensions, when they instead can use more broad extensions with a lot fewer privacy scandals.

I also suppose it deserves mention that I've for some time now included entries from you guys' userscript (with creditation) in one of my uBlock Origin lists, although the list isn't widely used, and the entries I originally borrowed have by now also received some additions and changes of my own.

For this pull request and information notice, I made a straight conversion of the GitHub Wide userscript, although I believe that the entries from Gist Wide should also be incorporable without affecting the GitHub Wide entries to any real degree.

DandelionSprout avatar Jul 11 '19 03:07 DandelionSprout

This is great! Ever since hearing about Stylish, I feel very cautious about userstyle extensions...

grrttedwards avatar Aug 15 '19 14:08 grrttedwards

@DandelionSprout and @grrttedwards Are there any current known privacy issues with any userstyle-specific extensions? Do you happen to have a good reference or 2 regarding previous scandals? I remember reading about some issues in the past, but I wasn't using any such extensions, so I didn't follow too closely.

What about any current issues resulting from pulling CSS or userCSS styles from specific repositories?

Gitoffthelawn avatar Oct 28 '20 15:10 Gitoffthelawn

https://en.wikipedia.org/wiki/Stylish#Privacy_issues seems like a good enough reference to me.

DandelionSprout avatar Oct 28 '20 15:10 DandelionSprout

Please have a look at Stylus, which is a privacy-friendly fork of Stylus.

PS : what's this format's name ?

KaKi87 avatar Feb 20 '21 17:02 KaKi87

@KaKi87 Stylus got the "privacy-friendly" part right, but unfortunately they have a long way go on the just plain "friendly" part.

Gitoffthelawn avatar Feb 20 '21 17:02 Gitoffthelawn

PS : what's this format's name ?

"uBlock Origin filterlist" is the closest thing this format has to any sort of name.

DandelionSprout avatar Feb 21 '21 04:02 DandelionSprout

Is there an official page documenting its syntax? Thanks

KaKi87 avatar Feb 21 '21 04:02 KaKi87

  • https://github.com/gorhill/uBlock/wiki/Static-filter-syntax (Covers :style and some other uBlock Origin-exclusive stuff)
  • https://help.eyeo.com/en/adblockplus/how-to-write-filters#special-comments (Covers ! Title: and ! Expires:, which are important to all major adblockers)

DandelionSprout avatar Feb 21 '21 04:02 DandelionSprout