Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: Firefox search plugin for Ubuntuforums

  1. #1
    Join Date
    Feb 2005
    Location
    Trento,Italy
    Beans
    73

    Ubuntuforums plugins for browsers

    Firefox search plugin

    Code:
    $ wget http://www.tranza.it/ubuntusearch.tar.gz
    $ tar -zxvf firefoxsearch.tar.gz
    $ sudo mv ubuntuforums.*  /usr/lib/mozilla-firefox/searchplugins/
    $ rm firefoxsearch.tar.gz
    N.B. Make sure there is no other ubuntuforums.xxx in the directory you are working
    Last edited by gasparov; January 27th, 2006 at 12:35 AM.

  2. #2
    Join Date
    Apr 2005
    Beans
    214
    Distro
    Edgy Eft Testing

    Re: Firefox search plugin for Ubuntuforums

    Great tip! But I use Opera, so here's how to do it in Opera. Opera is not so cool when it comes to extending it, so it's a little more kludgy.

    Open up ~/.opera/search.ini in a text editor, gedit seems to be popular, but I'm a vim user. You'll see lots of entries like this:
    Code:
    [Search Engine 1]
    Name=&Google
    URL=http://www.google.com/search?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8
    Query=
    Key=g
    Is post=0
    Has endseparator=0
    Encoding=utf-8
    Search Type=0
    Verbtext=17063
    Position=-1
    Nameid=0
    There are a few limitations here. First, the entries are numbered, and they must remain in order, or it doesn't seem to work. I usually take entries I don't use out of this file, since there is a lot of "junk" in there. Just make sure you don't mess up the order.

    Name is what apprears in the search box, the & is to assign an accelerator, or keyboard shortcut. URL is the URL to submit to, %s gets replaced with the search string. There is also %i, which is replaced with the prefered number of search results per page, but I don't use that. Key is also useful, if I set my Key to "u", I can enter u firefox into the address bar to search, as well as using the search box. IsPost should be 0, it defines the HTTP request method for the search. As for the others, I just don't touch them, and everything stays fine. Also, it picks up the icon automatically.

    Here is my section for Ubuntu forum searched. Don't forget about the order! You might have to change the number of yours.

    Code:
    [Search Engine 7]
    Name=&Ubuntuforums
    URL=http://www.ubuntuforums.org/search.php?q=%s
    Query=
    Key=u
    Is post=0
    Has endseparator=0
    Encoding=utf-8
    Search Type=0
    Verbtext=17063
    Position=-1
    Nameid=0
    A tip about the mozilla tip, you don't have to use sudo, you can also copy this to your personal profile directory. Look in ~/.mozilla/firefox/profiles.ini for your profiles directory, and copy the files to ~/.mozilla/firefox/<insert profile directory here>/search/.

  3. #3
    Join Date
    May 2005
    Location
    Dundas, Ontario, Canada
    Beans
    159
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Firefox search plugin for Ubuntuforums

    what does it do?

    -Wild

  4. #4
    Join Date
    Dec 2004
    Location
    Finland
    Beans
    398

    Re: Firefox search plugin for Ubuntuforums

    This should work on any Mozilla browser. Tested on Epiphany.

    Code:
    javascript:q = '' + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (!q) q = prompt('Search Ubuntu Forums for:', ''); if (q!=null) location='http://www.ubuntuforums.org/search.php?q=' + escape(q).replace(/ /g, '+'); void 0
    Use that as the address for a bookmark. It will pick up any text you have selected or if nothing is selected it will show a dialog where you can enter keywords to search for.

  5. #5
    Join Date
    Apr 2005
    Beans
    214
    Distro
    Edgy Eft Testing

    Re: Firefox search plugin for Ubuntuforums

    WildTangent: These add an "Ubuntu Forums" search option to the search box next to the address bar.

    ow50: Even better, and this works in Opera as well

  6. #6
    Join Date
    Nov 2004
    Location
    Texas
    Beans
    2,434

    Re: Firefox search plugin for Ubuntuforums

    Thanks..
    Those folks who try to impose analog rules on digital content will find themselves on the wrong side of the tidal wave.
    - Mark Shuttleworth

  7. #7
    Join Date
    Apr 2005
    Beans
    17

    Re: Firefox search plugin for Ubuntuforums

    Worked for me, thanks!

  8. #8
    Join Date
    Mar 2005
    Beans
    115

    Re: Firefox search plugin for Ubuntuforums

    Excellent! Just what I needed actually!
    "Windows is something to overcome"

    Howto's by me:
    Tweak firefox! (URL now works..)
    Backup/Restore your system!
    Avoid having to reboot


    Compentux.org
    , the Linux Tip & Howto gathering initiative!

  9. #9
    Join Date
    May 2005
    Location
    Dundas, Ontario, Canada
    Beans
    159
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Firefox search plugin for Ubuntuforums

    nifty...me like

    -Wild

  10. #10
    Join Date
    Mar 2005
    Beans
    6,040

    Re: Firefox search plugin for Ubuntuforums

    i was thinking of making one myself; thankfully i remembered to do a search first!

    this is so good it should be made sticky. i'm sure it will encourage searching. you should also submit it to the mycroft db.
    Last edited by 23meg; May 4th, 2005 at 04:57 AM.
    Previously known as 23meg

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •