openSUSE Forums > General Chit-Chat » Mozilla Firefox Ubiquity scripts.

Go Back   openSUSE Forums > General Chit-Chat
Forums FAQ Members List Search Today's Posts Mark Forums Read


General Chit-Chat A friendly place to converse about your adventures with openSUSE, your weekend, your boss, your new car, and generally stuff that doesn't fit somewhere else (and we must ask: PLEASE do not post help questions here)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-Sep-2009, 01:10
Wise Penguin
 
Join Date: Nov 2008
Posts: 1,255
Confuseling is on a distinguished reputation roadConfuseling is on a distinguished reputation road
Default Mozilla Firefox Ubiquity scripts.

This is an idea I got from the Arch forums (so thanks to them), but I thought I'd post it here too in case anyone hasn't seen it.

It's actually very useful.

Install ubiquity, then choose add-ons and ubiquity preferences. It'll open a tab, and somewhere or other it'll let you input custom commands (I think it's changed since I did this, so I'm not sure how you initially set them up now - maybe someone can clarify).

Now you can add custom search commands to a Firefox keyboard shortcut. For instance, I'm using;

Code:
CmdUtils.makeSearchCommand({
  name: ["susewiki"],
  url: "http://en.opensuse.org/index.php/Special:Search?search={QUERY}&go=Go",
  icon: "http://en.opensuse.org/favicon.ico",
  description: "Search openSUSE wiki."
});

CmdUtils.makeSearchCommand({
  name: ["susebbs"],
  url: "http://www.google.co.uk/search?q={QUERY}+site%3Aforums.opensuse.org&btnG=Search&meta=",
  icon: "http://en.opensuse.org/favicon.ico",
  description: "Search openSUSE forums."
});

CmdUtils.makeSearchCommand({
  name: ["susebug"],
  url: "https://bugzilla.novell.com/buglist.cgi?bug_status=__open__&content={QUERY}",
  icon: "http://en.opensuse.org/favicon.ico",
  description: "Search openSUSE bugzilla."
});

CmdUtils.makeSearchCommand({
  name: ["man"],
  url: "http://www.google.co.uk/search?q={QUERY}+site%3Alinuxmanpages.com&btnG=Search&meta=",
  icon: "http://www.google.co.uk/favicon.ico",
  description: "Search Linux man pages."
});

CmdUtils.makeSearchCommand({
  name: ["linux"],
  url: "http://www.google.co.uk/linux?q={QUERY}",
  icon: "http://www.google.co.uk/favicon.ico",
  description: "Search Google Linux."
});
So if I hit my key combo to open Ubiquity, then type "susebbs help I fooed my bar", it'll search this here forum for the string "help I fooed my bar".

Obviously, if you want to use these yourself, you should change the .co.uk and the en. to something suitable.

And if anyone has suggestions for how to improve them, or for other useful Linux related ones, please post them.
Reply With Quote
Reply

Bookmarks

Tags
search, ubiquity


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2