Google Browser Button

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

Google Browser Button

Post by Milind »

I love the Google Browser Button (http://www.google.com/options/buttons.html). The search button is the following Javascript

Code: Select all

javascript:q=document.getSelection();for(i=0;i<frames.length;i++){q=frames[i].document.getSelection();if(q)break;}if(!q)void(q=prompt('Keywords:',''));if(q)location.href='http://www.google.com/search?client=googlet&q='+escape(q)
This works fine as long as I have a page loaded. But when if I open a new tab and click on the button, the search dialog is not displayed. If I allow scripts globally, it works. How can I allow this script to run from a blank page without enabling global scripting?

Thanks
Milind
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6
Alan Baxter
Ambassador
Posts: 1586
Joined: Fri Mar 20, 2009 4:47 am
Location: Colorado, USA

Re: Google Browser Button

Post by Alan Baxter »

Hi, Milind. I've confirmed your issue. I'm sorry I don't have a fix for it, but Giorgio may come up with a change to the button's javascript or NoScript settings.

Until then, consider typing your search text in the Firefox search bar instead. It seems just as easy to me.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6
User avatar
Giorgio Maone
Site Admin
Posts: 9546
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Google Browser Button

Post by Giorgio Maone »

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Milind

Re: Google Browser Button

Post by Milind »

Worked like a charm! Thanks.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2b5) Gecko/20091204 Firefox/3.6b5
Post Reply