webext-inject-on-install
Version:
Automatically add content scripts to existing tabs when your extension is installed
26 lines (25 loc) • 982 B
TypeScript
type ContentScript = NonNullable<chrome.runtime.Manifest['content_scripts']>[number];
export declare const tracked: Map<number, ({
matches?: string[] | undefined;
exclude_matches?: string[] | undefined;
css?: string[] | undefined;
js?: string[] | undefined;
run_at?: string | undefined;
all_frames?: boolean | undefined;
match_about_blank?: boolean | undefined;
include_globs?: string[] | undefined;
exclude_globs?: string[] | undefined;
} | {
matches?: string[] | undefined;
exclude_matches?: string[] | undefined;
css?: string[] | undefined;
js?: string[] | undefined;
run_at?: string | undefined;
all_frames?: boolean | undefined;
match_about_blank?: boolean | undefined;
include_globs?: string[] | undefined;
exclude_globs?: string[] | undefined;
world?: "ISOLATED" | "MAIN" | undefined;
})[]>;
export default function progressivelyInjectScript(contentScript: ContentScript): Promise<void>;
export {};