Replace tab document.location
in page-script, need storage
permission to manage settings options.html
npm run build
#will run clean, sh build.sh, zip package combination
-
escape in destinations like:
\1
can be ambiguated with digits in URL -
regex trim will trim out many abnormal char from source URL
const REGEX_TRIM = /(\([^\)]*)|\^|\$|\*|\(|\)|\[|\{|\\|\|/g; // rest metachar: .+?-
const trimRegex = s => s.replace(REGEX_TRIM, "");