Page 1 of 1

Allow scripts from site A on site B only.

Posted: Sat Jun 11, 2011 8:50 am
by Guest
Since google.com done everything to break usability of their site with JS on, I usally don't allow scripts for them.
However google continued "break the internet" quest and acquired recaptcha several years ago. Of course, they decided to break it too.

So right now, if recaptcha.net is allowed and google.com is not, then recaptcha works awfully bad: I need to type captcha and then copypaste wall of text. However, if I'll chose on this page "temporaly allow google.com" or "temporaly allow all this page", then if I go to google.com, its scripts will be enabled.

So question is, is it possible to setup NoScript such way that it will allow scripts from google.com on some sites (for example on this forums.informaction.com), but at the same time disallow their execution from main google site(google.com).

Re: Allow scripts from site A on site B only.

Posted: Sat Jun 11, 2011 9:43 am
by Giorgio Maone
You can use ABE to this effect.
Allow google.com in NoScript, then add the following rule to your USER ruleset in NoScript Options|Advanced|ABE:

Code: Select all

Site .google.com
Sandbox

Re: Allow scripts from site A on site B only.

Posted: Mon Jun 13, 2011 8:47 pm
by Henry
I have a similar question:

How can I allow the facebook-servers just when I visit facebook, but block them everywhere else?

Now, it seems that I can allow a site totally, or block it totally, no matter what domain I visit. It would be very helpful when there was a third option in noscript like "allow [...] just when visiting this domain". (or could "allow temporarily" help me there?)

Thanks
Henry

Re: Allow scripts from site A on site B only.

Posted: Mon Jun 13, 2011 8:59 pm
by Henry
okay, I found the ABE-Code now.

But I'd like to suggest that third option I described above, it would make things much easier!

Thanks for writing Noscript!

Henry

Re: Allow scripts from site A on site B only.

Posted: Tue Jun 14, 2011 1:15 am
by TemplarW20
I'm wondering the same thing. Given how facebook and google have been when it comes to tracking people, I'd like to block their scripts on sites other than the home sites.

Re: Allow scripts from site A on site B only.

Posted: Tue Jun 14, 2011 6:25 am
by Giorgio Maone
TemplarW20 wrote:I'm wondering the same thing. Given how facebook and google have been when it comes to tracking people, I'd like to block their scripts on sites other than the home sites.
http://noscript.net/faq#qa8_10