Closed
Bug 246345
Opened 20 years ago
Closed 19 years ago
searching a site using the google search bar
Categories
(Firefox :: Search, enhancement)
Tracking
()
RESOLVED
FIXED
People
(Reporter: absque3, Assigned: p_ch)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a2) Gecko/20040610 Firefox/0.8 StumbleUpon/1.99 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a2) Gecko/20040610 Firefox/0.8 StumbleUpon/1.99 when u're on a site (like at mozilla.org) and u want to search for a word on the site, in google u'd do something like 'download site:mozilla.org'. any way to make this easier to do when using the search bar so i don't have to type the 'site:mozilla.org' part, assuming i'm already at some page of mozilla.org? this has to be a general solution, not the keyword thing for a particular domain/site. and preferably, something we type in the search tab (not the address tab). all that needs to be done is capture Ctrl+Enter or Shift+Enter for the search tab. if google is selected engine, add a " site:"+domain to the google search string. one keyset does that, other does it and opens results in a new tab. Reproducible: Always Steps to Reproduce: 1. search for any word using search bar. 2. to search just that site, add a ' site:thissite.com' 3. press enter Actual Results: google searches the site. Expected Results: that site should be searched without having to enter ' site:thissite.com' and function this way using Ctrl+Enter or Shift+Enter and show results in a new tab.
Comment 1•20 years ago
|
||
The "google site search" bookmarklet on http://www.squarefree.com/bookmarklets/search.html lets you do this.
(In reply to comment #1) yeah, but i don't browse with the bookmarks toolbar on, and even if use the bookmarks menu, it's inconvinient. would *prefer* to be able to use the feature from the search bar, which is always visible. the searching for highlighted term is nice, but no big advantage.
Comment 3•20 years ago
|
||
OK then. Just create a new bookmark with the following URL (without the quotes): "javascript:location.href='http://www.google.com/search?q=%s&as_sitesearch='+document.domain;void(null)" and give it a keyword, say 'ss'. Now when ever you want to search the current site you just type 'ss <search terms>' into the URL bar (which is always visible) and hit enter.
cool. perfect. brilliant. i couldn't find the pref where we can choose that Ctrl+Enter in location bar opens the link in a new tab. it's there in the mozilla suite but can't find it in firefox. and, could this be added as a feature in future versions? would be useful if available by default. (especially for ppl who 'convert')
Comment 5•20 years ago
|
||
Alt + Enter in used instead of Ctrl + Enter in Firefox
noted. unfortunately, when i do that, the site string becomes 'null'. any possible workaround?
Comment 7•19 years ago
|
||
Ping. Any possible reason why this hasn't gotten closed since it's doable via a bookmarklet?
(In reply to comment #7) yeah. it should be closed since the issue was resolved with Neil Jenkins' method: https://bugzilla.mozilla.org/show_bug.cgi?id=246345#c3 the alt + enter problem hasn't been fixed though. i'm using 'duplicate tab' as a workaround. closing.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•