Page 1 of 1

Some site elements are blocked even when whitelisted

Posted: Sun Sep 01, 2013 2:18 pm
by deadman
I keep coming across some sites that even when I allow all and whitelist them certain elements still do not work. Disabling NoScript entirely allows the pages to function correctly. One such site is www.asda.co.uk

When I click on store locater it should give a popout postcode entry box. But it doesn't with NoScript enabled even with the site whitelisted. If I disable NoScript it works fine.

Re: Some site elements are blocked even when whitelisted

Posted: Sun Sep 01, 2013 10:24 pm
by Thrawn
Ah. If you look in the Messages tab of the Error Console, you'll see this:

Code: Select all

[NoScript] Blocking cross-site Javascript served from http://jqueryjs.googlecode.com/files/jquery-1.3.2.js with wrong type info text/plain, attachment; filename="jquery-1.3.2.js" and included by http://www.asda.com/
asda.com is misusing Google Code, which is not meant to be used as a content delivery network. What asda ought to be doing is downloading JQuery and serving it from their own server, or else accessing it via a proper CDN. I recommend writing to their webmaster about this.

In the meantime, if you're confident that no-one malicious is going to tamper with JQuery on Google Code, then you can work around this:
  • Open a new tab and type 'about:config' in the address bar.
  • Search for 'noscript.inclusionTypeChecking.exceptions'.
  • Double-click on the result to edit it, and at the end, add 'http://jqueryjs.google.com/'.