WebexLinkFixer/config.js

31 lines
1.3 KiB
JavaScript

// =============================================================================
// Empty Link Fixer — website configuration ("compile-time").
//
// This is the ONLY file you normally need to edit, BEFORE loading the extension
// (hence "compile-time": changing it requires reloading the extension).
//
// After editing: go to chrome://extensions -> click "Reload" on this extension,
// then reload the target page.
// =============================================================================
globalThis.LINK_FIX_CONFIG = {
// The website(s) the extension should fix, matched against location.hostname.
// Examples:
// hosts: ["example.com"] -> only example.com
// hosts: ["example.com"] -> with includeSubdomains below, also
// www.example.com, docs.example.com, ...
// hosts: ["*"] -> every site (debugging only)
hosts: ["web.webex.com"],
// Also act on subdomains of the configured hosts.
includeSubdomains: true,
// Safety net: every N ms the extension re-scans the page. This covers content
// that appears without observable DOM mutations (e.g. a web component that
// attaches an open shadow root). 0 disables the periodic re-scan.
rescanIntervalMs: 3000,
// Log what the extension does to the DevTools console.
debug: true,
};