Redirector
Metadata
Section titled “Metadata”| Repo | https://github.com/firefox-extensions-declarative/Redirector-declarative |
| Extension ID | redirector@einaregilsson.com |
Building
Section titled “Building”Run python3 build.py. The XPI is located at build/redirector-firefox.xpi.
Thanks to @chuangzhu for making patch this uses.
Redirect
Section titled “Redirect”A single Redirector rule.
description
Section titled “description”Human-readable rule name.
Type: string
exampleUrl
Section titled “exampleUrl”Example URL that matches rule.
Type: string
exampleResult
Section titled “exampleResult”Example result after redirect.
Type: string
Rule validation error, if any. Usually null.
Type: string | null
includePattern
Section titled “includePattern”Pattern to match URLs against.
Type: string
excludePattern
Section titled “excludePattern”Pattern to exclude from matching.
Type: string
patternDesc
Section titled “patternDesc”Human-readable explanation of pattern.
Type: string
redirectUrl
Section titled “redirectUrl”Target URL to redirect to.
Type: string
patternType
Section titled “patternType”Pattern type.
Type: "W" | "R" | "C" | string
W: wildcardR: regular expressionC: compatibility pattern
processMatches
Section titled “processMatches”How Redirector processes matched groups.
Type: "noProcessing" | string
disabled
Section titled “disabled”Whether rule is disabled.
Type: boolean
grouped
Section titled “grouped”Whether rule is grouped in Redirector UI.
Type: boolean
appliesTo
Section titled “appliesTo”Request types this rule applies to.
Type: Array<string>
Common values include "main_frame", "sub_frame", "stylesheet", "script", "image", "xmlhttprequest", and "other".
Options
Section titled “Options”redirects
Section titled “redirects”List of Redirector rules.
Type: Array<Redirect>
Default: []