Page 1 of 2
invoking bookmarklet with keyword is prevented
Posted: Wed May 25, 2011 9:58 am
by DWizzy
I do not use a bookmarks toolbar, but keywords to invoke bookmarklets. For instance, I type "d" to open the bookmark for Diigolet.
However in 2.1.0.5, NoScript recognises this as a typed javascript URI in the address bar:
javascript: and data: URIs typed or pasted in the address bar are disabled to prevent social engineering attacks.
Developers can enable them for testing purposes by toggling the "noscript.allowURLBarJS" preference.
Is there a way NoScript could recognise the javascript URI isn't typed but stems from a bookmark, and thus allow execution?
Re: invoking bookmarklet with keyword is prevented
Posted: Wed May 25, 2011 2:20 pm
by therube
Re: invoking bookmarklet with keyword is prevented
Posted: Sat May 28, 2011 1:32 am
by DWizzy
Ah, didn't see that was actually the same problem. Thanks!
I'll work around it till the solution has been fixed in a main release, I was more keen on reporting this than creating a temporary fix

Re: invoking bookmarklet with keyword is prevented
Posted: Sat Jul 16, 2011 12:10 pm
by Guest
Has this issue resurfaced? allowURLBar -JS and -Imports both true, but NoScript (2.1.2.4rc1) is blocking bookmarklets in Firefox 6+. They'll execute by click, but not keyword. Fresh profile, dev build, etc.
Re: invoking bookmarklet with keyword is prevented
Posted: Sat Jul 16, 2011 12:18 pm
by therube
Is this a FF7 issue or are you seeing it on earlier versions too?
Re: invoking bookmarklet with keyword is prevented
Posted: Sat Jul 16, 2011 2:41 pm
by al_9x
Confirming, keyword bookmarklet invocation is not working in Fx 6.0b2 with NS 2.1.2.4rc1. allowURLBarJS does not help, nor should it apply to bookmarklet invocation, which should work without additional prefs, as it's been deliberately
excepted from the user typed javascript: ban
I suspect (will check) that in order to make this work, loadURIWithFlags will need to be patched (instead of loadURI), as suggested
here.
Re: invoking bookmarklet with keyword is prevented
Posted: Sat Jul 16, 2011 3:14 pm
by al_9x
al_9x wrote:I suspect (will check) that in order to make this work, loadURIWithFlags will need to be patched (instead of loadURI)
Indeed,
loadURIWithFlags is called in 6.0+,
loadURI in 5.0.
Re: invoking bookmarklet with keyword is prevented
Posted: Sun Jul 17, 2011 2:47 pm
by Giorgio Maone
Re: invoking bookmarklet with keyword is prevented
Posted: Sun Jul 17, 2011 4:27 pm
by al_9x
verified
Re: invoking bookmarklet with keyword is prevented
Posted: Mon Jul 18, 2011 12:24 am
by al_9x
The Fx built-in equivalent of the
SmartSearch new tab problem is alt-enter on the keyword, which runs the bookmarklet in a new tab and is also currently failing.
Re: invoking bookmarklet with keyword is prevented
Posted: Mon Jul 18, 2011 1:53 pm
by therube
(Note that in SeaMonkey, Ctrl+Enter opens the current URL in a new tab, as it should be

. OK, I see, Alt+Enter in FF is the equivalent of Ctrl+Enter in SeaMonkey. Never knew FF had that function. Atl+Enter is a tough combo to hit.)
Re: invoking bookmarklet with keyword is prevented
Posted: Tue Oct 04, 2011 10:46 am
by zozo
This problem still exists with Firefox 7.
I've tried the development build (2.1.4rc2 )but isn't it even older than the release version (2.1.4)?
Re: invoking bookmarklet with keyword is prevented
Posted: Tue Dec 13, 2011 5:08 pm
by stvltvs
Still a problem in FF 8, NoScript 2.2.3.
Re: invoking bookmarklet with keyword is prevented
Posted: Thu Feb 23, 2012 10:21 pm
by Guest
I'm using FF 10.0.2 and NoScript 2.3.1, and still have this issue.
I have allowURLBarJS, allowURLBarImports, allowBookmarkletImports, and allowBookmarks all true (not sure how many of these are relevant, I just checked for any settings that looked applicable).
Is there a NoScript setting that allows this to work?
Re: invoking bookmarklet with keyword is prevented
Posted: Sat Feb 25, 2012 9:45 am
by Giorgio Maone
It works for me with default settings.
What I tried:
- Created a clean profile
- Created a bookmark with URL javascript:alert(1) and keyword al
- Typed "al" in the address bar and hit [Enter]: an alert window with content "1" appeared (keyworded bookmarklet working)
- Installed NoScript and restarted Firefox
- Typed "al" in the address bar and hit [Enter]: an alert window with content "1" appeared (keyworded bookmarklet still working)
[/quote]
What am I missing?
Does your bookmarklet work if invoked by other means (e.g. by clicking it)?