Search found 2 matches

by cebihiya
Mon Jul 28, 2014 9:01 pm
Forum: ABE
Topic: Blocking inline scripts
Replies: 4
Views: 5487

Re: Blocking inline scripts

Giorgio Maone wrote:You can try with the following surrogate:

Code: Select all

addEventListener("beforescriptexecute", function(ev) { if(ev.target.textContent) ev.preventDefault() }, true);
Is it Greasemonkey script?
Giorgio Maone wrote: Alternatively, you may want to check whether this add-on works.
Thanks, I'll try.
by cebihiya
Mon Jul 28, 2014 1:59 pm
Forum: ABE
Topic: Blocking inline scripts
Replies: 4
Views: 5487

Blocking inline scripts

Hello. I want to create the rule, which will be locking all inline scripts on some site (but external JS must working). How I can do this?
My rule

Code: Select all

# User-defined rules. Feel free to experiment here.
Site example.org
Accept from example.org
Deny INCLUSION(SCRIPT, OBJ, SUBDOC)
doesn't work. :|