Closed Bug 368712 Opened 15 years ago Closed 4 years ago

Support Greasemonkey-style .tld in -moz-document rules


(Core :: CSS Parsing and Computation, enhancement)

Not set





(Reporter: jason.barnabe, Unassigned)


Greasemonkey provides the ability to put site.tld as an include to a user script. This lets the script match any top-level domain without listing them all. For example, google.tld matches,,, etc.

I'd like to see the feature available for -moz-document rules. It would increase the usefulness of -moz-document rules (and user styles in general) for international users - many Google user styles posted on the web currently only apply to and require manual editing for additional domains. Google user styles are among the most popular kind of user styles - at the time of writing 14 out of the top 25 user styles posted at are for Google. (

The new TLD service could be used to know which domains to apply the style to.
Assignee: dbaron → nobody
QA Contact: ian → style-system
I agree. -moz-document rules are a bit restrictive currently. See
I think this is too much of a hack to be included in Firefox.
Bug 398962 would accomplish the same thing while being less hacky.
@-moz-document is no longer supported.
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.