Is it possible to filter keywords in a javascript function and comment out the whole function #27159
-
Is it possible to filter keywords in a javascript function and comment out the whole function before it gets run? I've recently been STUNNED by the data that leaks through a browser via javascript, used solely to fingerprint users. I've tried lots of changes in about:config and a few addons but they all fail. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Please give example URL and steps to reproduce the issue. |
Beta Was this translation helpful? Give feedback.
-
https://www.deviceinfo.me/ |
Beta Was this translation helpful? Give feedback.
-
There are hundreds. I just wanted to know if what I was asking is vaguely possible. |
Beta Was this translation helpful? Give feedback.
Don't use extensions for preventing fingerprint. They don't have enough scopes to do that and can leak real data. Some browsers have options for those.
Back to your question
No, you cannot "comment out" part of the script. You can abort some inline scripts or replace parts of the inline scripts, but you need to target exact script to do that and you need to understand how javascript works, there's no general way to do that.