Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 8510 by landemaine: [Feature Request] Prevent script execution  
easily using user scripts
http://code.google.com/p/chromium/issues/detail?id=8510

Chrome Version       : 2.0.168.0



Using user scripts, it is currently impossible to prevent a Javascript from
being executed because as the page loads, it is executed. Opera has added a
feature to their user script framework to watch Javascripts and to
intercept them before they are run. Here is how it looks like:

window.opera.addEventListener ('BeforeScript',function (e) {if
(e.element.src.match (/ad-server/) || e.element.text.match
(/http:\/\/ad\./)) e.preventDefault ();}, false);

It allows you to select all javascripts that match specific sources or
content and to abort execution using the preventDefault() method. This
feature is very handy to stop some nasty scripts if you want to use user
scripts. More info here:
http://www.opera.com/browser/tutorials/userjs/examples/
What I would like is the same feature in Chrome's user scripts  
implementation.
Thanks.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to