openstyles / stylus

Stylus - Userstyles Manager
https://add0n.com/stylus.html
GNU General Public License v3.0
5.29k stars 299 forks source link

styles aren't applied to "chrome://*" URLs in Firefox #70

Closed Cauterite closed 7 years ago

Cauterite commented 7 years ago

Example:

with uBlock Origin installed, create a style with the rule URLs starting with : chrome://ublock0/content/dashboard.html and the style does not seem to be applied to the dashboard page.

stylus 1.0.8.1 firefox 53.0.2

narcolepticinsomniac commented 7 years ago

Copypasta from our AMO description:

"Some of the main advantages compared to the legacy Stylish-for-Firefox are a more modern UI, a backup feature which is compatible with Chrome (Stylus or Stylish), plus a more intuitive and customizable automatic update function for styles. Unfortunately, due to security restrictions in the WebExtensions platform, styling of the browser UI and internal pages is prohibited."

Stylus-for-Firefox is very much an improved fork of Stylish-for-Chrome, with the necessary modifications for FF compatibility. My opinion on the subject can be found in another thread here.

Btw, it can style its own internal pages. There are quite a few styles on US.o, but only a few have been updated to include the recent UI changes in Stylus, and I doubt any have accounted for FF yet. I have a dark style with compact layout options which I recently updated to include FF though, found here.

narcolepticinsomniac commented 7 years ago

Also maybe worth noting, there were a couple bugs in the FF version up until recently. One was a minor incorrect warning message in the popup, and the other was regarding installation of styles with advanced settings selected from US.o. Both have been fixed, but I'm not sure if AMO has been updated yet. If not, it should be shortly.

Cauterite commented 7 years ago

ugh, of course, webextensions ruin everything ¬_¬

i guess i'll hack-up a separate addon for styling chrome:// stuff

Cauterite commented 7 years ago

For the benefit of anyone else who'd like this feature, here's what I came up with:

https://github.com/Cauterite/firefox-userchrome-addon

Of course I don't mean to offend any of the Stylus developers; for non-chrome:// pages Stylus is still a very solid extension.

tophf commented 7 years ago

In case you didn't know, Firefox will only support WebExtensions by the end of 2017.