Gear Browser

UserStyle Documentation

Gear UserStyle supports @document syntax to match the style of the URL. It's similar to Mozilla @document / @-moz-document CSS at-rule. You can read more from Mozilla @document.

@document url(""),
    regexp("https:.*") {
    body {
        color: red;

/* Apply styles for all website. */
body {
    font-family: "Ubuntu";


An @document rule can specify one or more matching functions. If any of the functions apply to a given URL, the rule will take effect on that URL. The functions available are:

The values provided to the url(), url-prefix(), and domain() functions can be optionally enclosed by single or double quotes. The values provided to the regexp() function must be enclosed in quotes.

Escaped values provided to the regexp() function must additionally be escaped from the CSS. For example, a . (period) matches any character in regular expressions. To match a literal period, you would first need to escape it using regular expression rules (to \.), then escape that string using CSS rules (to \\.).