metaRules
potentialRules
changeCss
changeSingleCss
findCssRules
metaRules: object = ...

Rules that index into potentialRules or metaRules

Please don't add cycles to this table :)

gui: object = ...
full: object = ...
hoverlink: string = "left"
menubar: string = "default"
navbar: string = "always"
padwhenmaximised: string = "none"
sidebar: string = "show"
tabs: string = "always"
none: object = ...
hoverlink: string = "none"
menubar: string = "grey"
navbar: string = "autohide"
padwhenmaximised: string = "some"
tabs: string = "none"
navbar: object = ...
always: object = ...
navbarafter: string = "show"
navbarnoheight: string = "hide"
navbarnonaddonchildren: string = "show"
navbarunfocused: string = "show"
navtoolboxunfocused: string = "show"
urlbar: string = "show"
urlbarcontainer: string = "show"
autohide: object = ...
navbarafter: string = "hide"
navbarnoheight: string = "hide"
navbarnonaddonchildren: string = "show"
navbarunfocused: string = "hide"
navtoolboxunfocused: string = "hide"
urlbar: string = "hide"
urlbarcontainer: string = "hide"
none: object = ...
navbarafter: string = "hide"
navbarnoheight: string = "show"
navbarnonaddonchildren: string = "hide"
navbarunfocused: string = "show"
navtoolboxunfocused: string = "show"
urlbar: string = "hide"
urlbarcontainer: string = "hide"
tabs: object = ...
always: object = ...
navtoolboxunfocused: string = "show"
tabstoolbar: string = "show"
tabstoolbarunfocused: string = "show"
autohide: object = ...
navtoolboxunfocused: string = "hide"
tabstoolbar: string = "show"
tabstoolbarunfocused: string = "hide"
count: object = ...
tabcounter: string = "on"
tabcounters: string = "show"
nocount: object = ...
tabcounter: string = "off"
tabcounters: string = "hide"
none: object = ...
navtoolboxunfocused: string = "hide"
tabstoolbar: string = "none"
potentialRules: object = ...

Rulename -> { name: , options: { : } }

Multi-level map of rulename, options available for rule and css for each option.

findCssRules and changeSingleCss rely on the selector not containing a comma.

TODO: make this more flexible with cleverer matching of selectors, merging of options

hoverlink: object = ...
name: string = ...
options: object = ...
left: string = ...
none: string = ...
right: string = ...
"top-left": string = ...
"top-right": string = ...
menubar: object = ...
name: string = ...
options: object = ...
default: string = ...
grey: string = ...
navbarafter: object = ...
name: string = ...
options: object = ...
hide: string = ...
show: string = ...
navbarnoheight: object = ...
name: string = ...
options: object = ...
hide: string = ...
show: string = ...
navbarnonaddonchildren: object = ...
name: string = ...
options: object = ...
hide: string = ...
show: string = ...
navbarunfocused: object = ...
name: string = ...
options: object = ...
hide: string = ...
show: string = ...
navtoolboxunfocused: object = ...
name: string = ...
options: object = ...
hide: string = ...
show: string = ...
padwhenmaximised: object = ...
name: string = ...
options: object = ...
none: string = ...
some: string = ...
sidebar: object = ...
name: string = ...
options: object = ...
hide: string = ...
show: string = ...
statuspanel: object = ...
name: string = ...
options: object = ...
left: string = ...
none: string = ...
right: string = ...
"top-left": string = ...
"top-right": string = ...
tabcounter: object = ...
name: string = ...
options: object = ...
off: string = ...
on: string = ...
tabcounters: object = ...
name: string = ...
options: object = ...
hide: string = ...
show: string = ...
tabstoolbar: object = ...
name: string = ...
options: object = ...
none: string = ...
show: string = ...
tabstoolbarunfocused: object = ...
name: string = ...
options: object = ...
hide: string = ...
show: string = ...
titlebar: object = ...
name: string = ...
options: object = ...
hide: string = ...
show: string = ...
urlbar: object = ...
name: string = ...
options: object = ...
hide: string = ...
show: string = ...
urlbarcontainer: object = ...
name: string = ...
options: object = ...
hide: string = ...
show: string = ...
  • Apply rule to stylesheet. rulename, optionname identify a rule. They may be meta rules

    Parameters

    • rulename: string
    • optionname: string
    • sheet: Stylesheet

    Returns Stylesheet

  • Add desired non-meta rule to stylesheet replacing existing rule with the same selector if present

    Parameters

    • rulename: string
    • optionname: string
    • sheet: Stylesheet

    Returns Stylesheet

  • Find rules in sheet that match selector

    Parameters

    • selectors: string[]
    • sheet: Stylesheet

    Returns number[]