Blocking JavaScript per page

Ask for help about NoScript, no registration needed to post
l_bratch
Posts: 3
Joined: Tue Jun 02, 2009 4:13 pm
Location: Jersey
Contact:

Blocking JavaScript per page

Post by l_bratch »

Hi there

Is it possible to use NoScript to block JavaScript at a per page level?

For instance, rather than blocking *mydomain.com*, I'd only like to block *mydomain.com/mypage*.

Thanks

l_bratch
Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.10) Gecko/2009050213 Gentoo Firefox/3.0.10
User avatar
therube
Ambassador
Posts: 7929
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Blocking JavaScript per page

Post by therube »

See if this helps you, Site matching.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090403 SeaMonkey/1.1.16
l_bratch
Posts: 3
Joined: Tue Jun 02, 2009 4:13 pm
Location: Jersey
Contact:

Re: Blocking JavaScript per page

Post by l_bratch »

Thanks, but site matching still only allows specification of hosts and not entire URLs.
Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.10) Gecko/2009050213 Gentoo Firefox/3.0.10
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Blocking JavaScript per page

Post by Giorgio Maone »

In facts, it's not possible with "classic" NoScript.
However you can use ABE (available in latest development build, NoScript Options|Advanced|ABE) by adding a rule (in the USER ruleset) like this:

Site *.somesite.com/somepage
Sandbox

Preliminary (quite old) introduction to ABE here.
Up-to-date documentation is being prepared and will be available (hopefully) by the end of this week.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
l_bratch
Posts: 3
Joined: Tue Jun 02, 2009 4:13 pm
Location: Jersey
Contact:

Re: Blocking JavaScript per page

Post by l_bratch »

Awesome, I shall have a play.

Thank you.
Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.10) Gecko/2009050213 Gentoo Firefox/3.0.10
Post Reply