From 623e056fe6322c1d0f07554aea2fabf2f834e8a5 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 27 Dec 2023 09:48:35 -0500 Subject: Script manager cleanup (#456) * Remove unused functions * Remove fallback code * Simplify injectStylesheet * Simplify unregisterContentScript * Merge functions * Simplify registration details * Simplify injectScript * Remove class wrapper * Remove unused injectScript --- types/ext/script-manager.d.ts | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'types/ext') diff --git a/types/ext/script-manager.d.ts b/types/ext/script-manager.d.ts index 57b9ee06..66a5c20f 100644 --- a/types/ext/script-manager.d.ts +++ b/types/ext/script-manager.d.ts @@ -21,26 +21,12 @@ export type RunAt = 'document_start' | 'document_end' | 'document_idle'; export type RegistrationDetails = { /** Same as `matches` in the `content_scripts` manifest key. */ matches: string[]; - - /** Regex match pattern to use as a fallback when native content script registration isn't supported. */ - /** Should be equivalent to `matches`. */ - urlMatches: string; - /** Same as `run_at` in the `content_scripts` manifest key. */ runAt: RunAt; - - /** Same as `exclude_matches` in the `content_scripts` manifest key. */ - excludeMatches?: string[]; - - /** Same as `match_about_blank` in the `content_scripts` manifest key. */ - matchAboutBlank: boolean; - /** Same as `all_frames` in the `content_scripts` manifest key. */ allFrames: boolean; - /** List of CSS paths. */ css?: string[]; - /** List of script paths. */ js?: string[]; }; -- cgit v1.2.3