Basically the question is in title.

Problem:

Some web sites add classes/ids when you click/hover etc... on it.

Is there a way to prevent this action?

Is there a good way to do that? After long googling I did not find anything that is well done.

有帮助吗?

解决方案

You could use jquery's off to do this:

$("*").off("click").off("mouseover").off("hover");

That will remove practically every mouse event from the page. It would need to be made into an extension if you want to automatically run it on every page.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top