Page 1 of 1

JavaScript in Omnibar not working

Posted: Thu Jul 28, 2011 5:58 am
by yeahman
JavaScript doesn't work in the address bar when using Omnibar. Works fine if either NS or Omnibar is disable.

Re: JavaScript in Omnibar not working

Posted: Thu Jul 28, 2011 7:11 am
by therube
(Link, I suppose, Omnibar.)

How do you get it to work if NoScript is disabled?
Is there some Preference you need to set to allow JavaScript on the URL bar?

(Related thread, Problems with javascript in the address bar.)

Code: Select all

javascript:alert ("hello world")

Re: JavaScript in Omnibar not working

Posted: Thu Jul 28, 2011 1:57 pm
by yeahman
therube wrote:

Code: Select all

javascript:alert ("hello world")
That didn't work without NS.

Code: Select all

javascript:1+1
That works without NS, with NS, with Omnibar, but not with NS + Omnibar.

What I really need it for is keyword searching with javascript. For example if you save the following as a bookmark with a keyword:

Code: Select all

javascript:location.href="https://encrypted.google.com/search?q=%s"
Then search using the keyword in the address bar. Works without NS, with NS, with Omnibar, but not with NS + Omnibar.