arkenfox / user.js

Firefox privacy, security and anti-tracking: a comprehensive user.js template for configuration and hardening
MIT License
9.43k stars 508 forks source link

[Q] detection of JS injected by an extension #1778

Closed atomGit closed 7 months ago

atomGit commented 7 months ago

is it possible via browser dev tools to detect if an add-on has injected JS into a document?

Thorin-Oakenpants commented 7 months ago

I don't see why the console should be special - if you can do it via a document script, then the answer is yes

atomGit commented 7 months ago

not sure i was clear enough - what i'm trying to do figure out whether JS injected by an add-on can be seen somewhere, such as the browser dev tools

how, and where, can such injections be recognized? would one look for a file reference, or something else?

Thorin-Oakenpants commented 7 months ago

out of scope for this repo - perhaps ask at slackoverflow - but one way is to enumerate properties (skip opener)