-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FireMonkey] Toggling UserCSS should apply/remove instantly #295
Comments
Currently, that is not possible. FireMonkey uses automatic injection method of automatic injection UserCSS (contentScripts API) & UserScript (userScripts API), hence the same metadata block. Stylus injects manually using a different API tabs.insertCSS() which allows the removal. FireMonkey's scratchpad uses However, I have requested a similar feature in Bug 1516478 . |
Not that it changes anything, but Stylus injects by appending a |
As stated at the beginning of the issue from the link I posted, |
You are right... I tested it now with Stylus and it does inject as Nonetheless, their method of injection is manual. Extension injects the style by matching URLs. The manual injection of |
Subsequent to #305 ... there is a new feature in v2.20
Although it is not what this topic requested, it can be helpful. It is similar to Scratchpad function but for userScript & userCSS and it is accessible from the Info page. What is does
|
|
Firefox's implementation of chrome.scripting API is part of Manifest v3 update which has not even reached the testing phase yet. Footnote: Chrome Users Beware: Manifest V3 is Deceitful and Threatening |
v2.43 uploaded Live userCSS Update Experimental feature was added in v2.43 to update open tabs when userCSS style changes. There are 2 types of CSS that are injected by FireMonkey:
Live userCSS update is applied to the relevant tabs under the following circumstances:
Please note that temporary CSS can not replace permanent CSS but can override it. The current Firefox API does not facilitate the removal of a permanent CSS. |
Great, thank you. Does this also fixes #424? Or only manual updates have live update? |
No... it doesn't update disabled userCSS. Injected by the API a {
color: red;
}
p {
color: red;
} Edit the userCss and remove a {
color: blue;
}
li {
color: blue;
} Result a { /* overridden */
color: blue;
}
li { /* added */
color: blue;
}
p { /* no-change */
color: red;
} |
Currently, when you enable or disable a UserCSS it's needed to refresh the page to apply. This approach is obvious for UserScripts, but CSS should apply instantly, just like other UserStyles managers such as Stylus do.
The text was updated successfully, but these errors were encountered: