Skip to content

Is it possible to filter keywords in a javascript function and comment out the whole function #27159

Answered by stephenhawk8054
msjs08 asked this question in Ideas
Discussion options

You must be logged in to vote

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

Is it possible to filter keywords in a javascript function and comment out the whole function before it gets run?

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.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@stephenhawk8054
Comment options

Comment options

You must be logged in to vote
4 replies
@MasterKia
Comment options

@msjs08
Comment options

@stephenhawk8054
Comment options

Answer selected by msjs08
@msjs08
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants