Skip to content
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

(Suggestion) When installing a style as a userscript, its @-moz-document rules to be converted to @include rules #84

Open
darkred opened this issue Jan 1, 2016 · 0 comments

Comments

@darkred
Copy link

darkred commented Jan 1, 2016

My suggestion (if possible):
when installing a style as a userscript,
its @-moz-documentrules[1], to be converted to separate @include rules.
This way, the userscript will execute only if it matches any of those rules, just like the initial style.

Example:

@-moz-document url("stackexchange.com"),
               url-prefix("http://superuser.com"),  
               domain("serverfault.com"),
               regexp("^https?:\\/\\/((chat|meta|ja|pt|ru)\\.)?stackoverflow\\.com.*")

to be converted in the installed userscript into:

// @include    http://stackexchange.com/
// @include    http://superuser.com/*
// @include    http://*.serverfault.com/*
// @include    /^https?:\/\/((chat|meta|ja|pt|ru)\.)?stackoverflow\.com.*/

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant