FirefoxBar / xStyle

A user styles manager for Firefox and Chrome
http://team.firefoxcn.net/#addons
GNU General Public License v3.0
170 stars 13 forks source link

Request. #38

Open mikhoul opened 6 years ago

mikhoul commented 6 years ago

Hi,

Could it be possible to add the management of styles for Firefox for userChrome.css (Firefox UI) and userContent.css (about:-pages) like this addon: https://addons.mozilla.org/en-US/firefox/addon/re-style/?src=search ?

Even if we are not able to preview the change without restarting Firefox cause of the lack of API at this time we would be able at least to manage and edit all the Styles from the the same addon instead of using 2 different interface to manage/edit styles.

"Starting with Firefox 57, it is no longer possible for Add-ons to directly apply user styles to anything else than normal websites. As a workaround, reStyle recognizes styles that will no longer work and writes them to the userCrome.css (e.g. for the UI) and userContent.css (e.g. for about:-pages).The only major drawback of this compared to how Stylish for Firefox used to apply styles is that the browser must be restarted for changes to those files to be applied."

Regards :octocat:

N.B.: I will finish the french translation soon for xStyle , I did not forget it's just that I was really busy in the last weeks, in 1-2 weeks I should have more time to devote to the french translation.

sylingd commented 6 years ago

It requires users install NativeExt to their computer. I do not think it is a good way. It may break the security and convenience, and cause other compatibility problems.

mikhoul commented 6 years ago

Do you think @sylingd it would be possible to integrate styles in userChrome.css and userContent.css in a better way ?

yfdyh000 commented 6 years ago

Maybe you want to https://violentmonkey.github.io/2017/03/14/How-to-edit-scripts-with-your-favorite-editor/?

sylingd commented 6 years ago

@mikhoul I have asked the author of pcxFirefox if it is possible to build a component like NativeExt into pcxFirefox, he said that he will try if he have free time (But I think it may take a long time) I am waiting for three situations. Firstly, one of softwares which is similar to NativeExt become popular and simple enough. Secondly, Mozilla add a feature which can make WebExtension access local files. Thirdly, build a component like NativeExt into a popular third-party compilation of firefox. If one situation has become reality, I will try to add more useful features for xStyle.

sylingd commented 6 years ago

@yfdyh000 I have read it, it can only read a selected file. Maybe it is useful, but it's not the same thing that we discussed in this issue.

mikhoul commented 6 years ago

Thanks @sylingd for the reply I will watch on my side to see if one of those 3 conditons is availlable and let you know if I see something that seem to fulfill your requirements.

Regards :octocat:

sylingd commented 6 years ago

Maybe I can add it as an additional feature ... emmmm ... I'll have a try