[FIXED] 5.1.3 Blocks bookmarklets w/ "Globally allow..."

Ask for help about NoScript, no registration needed to post
Alpha123

[FIXED] 5.1.3 Blocks bookmarklets w/ "Globally allow..."

Post by Alpha123 »

I've got a bookmarked JavaScript used to force web pages to allow saving of form information. The most recent version of NoScript blocks it, and I can't figure out if there are any settings that will allow running it beyond disabling NoScript alltogether. Whitelisting a site isn't good enough to let it work.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
filip
Posts: 3
Joined: Tue Oct 24, 2017 4:48 pm

Re: 5.1.3 Blocks javascript bookmark that turns autocomplete

Post by filip »

All my bookmarklets stopped working since 5.1.3.

I've tried enabling "noscript.allowURLBarJS" in about:config but that didn't help.

Would be grateful if anyone can provide any background or hints on what we can do to enable bookmarklets short of disabling NoScript.
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
User avatar
Giorgio Maone
Site Admin
Posts: 9526
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: 5.1.3 Blocks javascript bookmark that turns autocomplete

Post by Giorgio Maone »

This works for me:
  • A simple

    Code: Select all

    javascript:alert("test")
    bookmarklet
  • executed by clicking its button on the bookmarks bar
  • on Fx 56 clean profile with NoScript 5.1.3
  • both on whitelisted and non-whitelisted pages
  • either immediately after restartless installation or after a browser restart.
Do your testing conditions match mine, and if not what are the differences?

Could you please:
  1. Send me the code of your bookmarklets for puntual testing
  2. Check wheter the NoScript Options>Advanced>Untrusted>Forbid bookmarklets preference is unchecked as it should
  3. Whether resetting NoScript's options (after exporting them for recovering) helps
  4. Whether disabling the other extensions (or trying a clean profile) helps
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
filip
Posts: 3
Joined: Tue Oct 24, 2017 4:48 pm

Re: 5.1.3 Blocks javascript bookmark that turns autocomplete

Post by filip »

It seems the NoScript setting

Code: Select all

"global":true
is what breaks the bookmarklets.

I tested your bookmarklet with a clean Firefox 56.0.1 profile with NoScript 5.1.3 and default NoScript settings => works ok;

After selecting the checkbox to allow scripts globally, the bookmarklet doesn't work anymore.

I exported the working settings and the non-working settings, and it seems

Code: Select all

"global":true
is the only difference.

Does that help?
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
User avatar
Giorgio Maone
Site Admin
Posts: 9526
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: 5.1.3 Blocks javascript bookmark that turns autocomplete

Post by Giorgio Maone »

filip wrote: Does that help?
Yes, a lot. Please check latest development build 5.1.4rc1, thanks.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Alpha123

Re: 5.1.3 Blocks javascript bookmark that turns autocomplete

Post by Alpha123 »

Ah, bookmarklets was the word I was trying to think of. The checkbox disabling them is unchecked. I did try using a different profile. Earlier today I had re-enabled forbid global scripts and the test script that was posted worked, but the one I posted below didn't. Now can't get either to work.

This is the code:

Code: Select all

javascript:(function(){var%20ac,c,f,fa,fe,fea,x,y,z;ac="autocomplete";c=0;f=document.forms;for(x=0;x<f.length;x++){fa=f[x].attributes;for(y=0;y<fa.length;y++){if(fa[y].name.toLowerCase()==ac){fa[y].value="on";c++;}}fe=f[x].elements;for(y=0;y<fe.length;y++){fea=fe[y].attributes;for(z=0;z<fea.length;z++){if(fea[z].name.toLowerCase()==ac){fea[z].value="on";c++;}}}}alert("Enabled%20'"+ac+"'%20on%20"+c+"%20objects.");})();
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
User avatar
Giorgio Maone
Site Admin
Posts: 9526
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: 5.1.3 Blocks javascript bookmark that turns autocomplete

Post by Giorgio Maone »

Alpha123 wrote:t. Now can't get either to work.
Did you try latest development build 5.1.4rc1?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Alpha123

Re: 5.1.3 Blocks javascript bookmark that turns autocomplete

Post by Alpha123 »

Giorgio Maone wrote:
Alpha123 wrote:t. Now can't get either to work.
Did you try latest development build 5.1.4rc1?
Sorry didn't say, no I didn't. Sounds like it fixes the issue though, so I'd guess it will go into the release version at some point. Thanks!
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Alpha123

Re: 5.1.3 Blocks javascript bookmark that turns autocomplete

Post by Alpha123 »

Alpha123 wrote:
Giorgio Maone wrote:
Alpha123 wrote:t. Now can't get either to work.
Did you try latest development build 5.1.4rc1?
Sorry didn't say, no I didn't. Sounds like it fixes the issue though, so I'd guess it will go into the release version at some point. Thanks!
I did get the latest development build installed, and it does work. Thanks again!
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
filip
Posts: 3
Joined: Tue Oct 24, 2017 4:48 pm

Re: [FIXED] 5.1.3 Blocks bookmarklets w/ "Globally allow..."

Post by filip »

Thanks – I uninstalled 5.1.3, reinstalled 5.1.4rc1, now bookmarklets work with "Globally allow". :)
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Post Reply