We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d29993 commit c9733b9Copy full SHA for c9733b9
1 file changed
Chrome/utils/inject.js
@@ -805,6 +805,12 @@ class ScriptInjector {
805
}
806
807
async injectInWorld(tabId, config, world) {
808
+ // Prevent injection into chrome:// URLs
809
+ if (config.url && config.url.startsWith('chrome://')) {
810
+ console.log('CodeTweak: Skipping injection into chrome:// URL:', config.url);
811
+ return false;
812
+ }
813
+
814
// Ensure core GM classes are available in the target execution world first
815
await chrome.scripting.executeScript({
816
target: { tabId },
0 commit comments