I am using the add-on stylish in Firefox 8.0. I particularly like a plain style and I want to apply to all website. Can I do that? I tried *.com and it doesn't work.
Asked
Active
Viewed 2,492 times
2 Answers
5
You can apply a style to all websites by using the XHTML namespace:
@namespace url(http://www.w3.org/1999/xhtml);
Your CSS here.
Alternatively, to only modify the Firefox UI, you would use the XUL namespace:
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
So, if you do not include a namespace, Stylish will modify all elements in Firefox.
Example:

-
Can you give an working example? Thanks. – lamwaiman1988 Dec 01 '11 at 03:41
-
I tried the first one you wrote and it didn't work. – lamwaiman1988 Dec 01 '11 at 04:06
-
@gunbuster363 See my edit. :) – iglvzx Dec 01 '11 at 04:21
-
It's working now. – lamwaiman1988 Dec 01 '11 at 05:42
2
I found the XHTML namespace rule @namespace url(http://www.w3.org/1999/xhtml); to apply to everything, web sites and the Firefox UI (chrome) alike.
To style all web sites, I use the following @document rule instead (tested with FF28.0 and Stylish 1.4.3):
@-moz-document url-prefix(http://), url-prefix(https://) {
/* Make all Links UPPERCASE */
a {
text-transform: uppercase !important;
}
}
Documentation on Mozilla Developer Network:
Mesagoma
- 21