Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to permanently add some options to google search in Firefox. I'm tired of all these spam sites and I'd like to have my own list of banned words that should be always attached to the search (like -torrent -xxx etc).

share|improve this question
2  
You should probably have a look at this and create your own based on an example, since they apparently have created custom Google search engines and they work in Firefox: mycroftproject.com/google-search-plugins.html. –  T.F. Apr 7 '13 at 13:03
    
In Google Chrome you can even write your own custom query string like superuser.com/search?q=%s –  Shenal Silva Apr 7 '13 at 13:54
    
@ShenalSilva: As you can in Firefox (introduced years before Chrome was even released). –  Wk_of_Angmar Apr 8 '13 at 0:01
add comment

2 Answers

up vote 0 down vote accepted

I have downloaded from the site Torben suggested google-3-months plugin as a template. It was installed in ..\Application Data\Mozilla\Firefox\Profiles\???????.default\searchplugins\ directory.

I edited it following:

<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>Google (despam)</os:ShortName>
<os:Description>Google</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,... HERE COMES ENCODED ICON
</os:Image>
<SearchForm>http://www.google.com/search -torrent</SearchForm>
<os:Url type="text/html" method="GET" template="http://www.google.com/search?q={searchTerms} -torrent">
</os:Url>
</SearchPlugin>

After restart of firefox I had new search engine which did exactly what I wanted i.e. added -torren to search parameters.

Thanx Torben

share|improve this answer
add comment
  1. Extract the URL of the search page, replacing the search string with %s.
    For your example: https://www.google.co.uk/search?&q=%s%20-torrent%20-xxx

  2. Create a new bookmark. Set the URL to the one you got in step 1.

  3. Assign a keyword. For example, torrent. Press OK.
    enter image description here

  4. Now you can search by typing in torrent followed by your search terms in the address bar.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.