You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click on "Write new style" anyway and see that a UserCSS style seems to have been created anyway (as "Write new style as UserCSS" was already on for me)
Edit the style to look like Screenshot 3
Click the arrow next to Save and choose "Save as template"
A confusing "confirmation" dialog appears, which only has a "Close" button, not "Yes" and "No" as you would expect since it's asking a question (Screenshot 4)
The new style looks like Screenshot 5 — there is a blank section added for "URLs on the domain explainxckd.com" and the rules I added to the template are in an additional section "URLs on the domain example.com".
Expected outcome
The new style looks like Screenshot 3, but with @name explainxkcd.com and the one section being targeted to explainxkcd.com instead of example.com.
The instructions in the Wiki reflect the current release (ideally with a note of how things used to work for people still on older versions, if that's likely to be an issue).
(The ideal expected outcome would be that there is just an "edit default template" button/menu option that gives you the template and lets you save it with a normal ⌘S — and that creating new styles after that would follow that template rather than adding bits I didn't ask for :)
Workarounds
Every time I create a new style, I could select the contents for the @moz-document domain("example.com") and paste them into the @moz-document domain("explainxkcd.com"), then delete the now-empty example.com container.
I could instead use Typinator or similar to just fill the default template section, except now I can't find a way to go back to the default template, and seem to be stuck with this two-section version.
## To create a UserCSS format style:
From the Manage page, check the "as UserCSS" checkbox next to the "Write new style" button.
Click on the "Write new style" button.
A basic UserCSS template will then be available.
## Change default template
To change the default UserCSS template, create a UserCSS style as described above.
Within the default template, make any changes to the template to suit your needs.
Click ▼ inside the Save button to expand the dropdown menu, then select Save as template.
Description
Actual outcome
The new style looks like Screenshot 5 — there is a blank section added for "URLs on the domain explainxckd.com" and the rules I added to the template are in an additional section "URLs on the domain example.com".
Expected outcome
The new style looks like Screenshot 3, but with
@name explainxkcd.comand the one section being targeted toexplainxkcd.cominstead ofexample.com.The instructions in the Wiki reflect the current release (ideally with a note of how things used to work for people still on older versions, if that's likely to be an issue).
(The ideal expected outcome would be that there is just an "edit default template" button/menu option that gives you the template and lets you save it with a normal ⌘S — and that creating new styles after that would follow that template rather than adding bits I didn't ask for :)
Workarounds
Every time I create a new style, I could select the contents for the
@moz-document domain("example.com")and paste them into the@moz-document domain("explainxkcd.com"), then delete the now-empty example.com container.I could instead use Typinator or similar to just fill the default template section, except now I can't find a way to go back to the default template, and seem to be stuck with this two-section version.
System Information
Screenshots, links, CSS
This is what the Wiki says:
Screenshot 1
Screenshot 2
Screenshot 3
Screenshot 4
Screenshot 5