我对 Stylish 编码一无所知,但假设您可以使用 RegEx,您可以尝试以下方法:
www.website.com(?!\/wiki\/).*
所以你的完整代码将是:
@-moz-document regexp('https?://www\\.website\\.com(?!/wiki/).*') {
...
}
以下是 RegEx 的工作方式:
http # Selects HTTP protocol
s? # Options s for HTTPS protocol
:// # :// After Protocol
www # www
\\. # Escaped . (dot)
website\\.com # Website
(?! # Start of negative lookahead, If anything inside is found, the match will fail
/wiki/ # Don't match if inside /wiki/ directory
) # End of negative lookahead
.* # Selects any character (.) any amount of times (*)
Live Demo on RegExr