fregante/webext-active-tab
View on GitHub`registerActiveTabScripts` - allow filtering out some tabs
Open
#3 opened on Feb 1, 2025
enhancementhelp wanted
Repository metrics
- Stars
- (2 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
To restore some functionality from https://github.com/fregante/webext-dynamic-content-scripts/pull/78
Static
import registerActiveTabScripts from 'webext-active-tab/register-active-tab-scripts';
+ import {isContentScriptRegistered} from 'webext-dynamic-content-scripts/utils.js';
registerActiveTabScripts({
+ filter: async tab => !isContentScriptRegistered(tab.url),
js: [
'content.js',
],
css: [
'content.css',
],
runAt: 'document_idle',
matchAboutBlank: false,
});