Reputation: 2540
Is it possible in any way for websites to detect the usage of userscripts by any errors that the user may experience from that userscript?
Say that a website administrator wants to catch userscripters by changing something in the website that then causes object selectors in the userscripts to fail. Can the website know about the errors caused by a failing userscript and or can they in some way read the console.log()'s created by the userscript?
This is not a question about DOM modification.
Brock, this may be your field. :)
Upvotes: 1
Views: 239
Reputation: 707556
A website can check their DOM to see if the page has been modified in ways that are not done by their own code. So, if a userscript was modifying the page in some way, a website could potentially detect that modification (they'd have to be looking for it).
A website can replace console.log()
with their own function that captures any output sent to it (this would be actual console.log()
statements in your code, not other messages the system puts in the console (such as uncaught exceptions).
Upvotes: 1