User blog:Pecoes/How to search Wikia in the most fastest way

If you've been around for a while, you may have noticed that Wikia's search is... er... well, let's just say, it's ok &mdash; not great &mdash; but ok. But why would you use an ok search engine, when you could use a great one instead? And by that I mean Google. And if you also happen to be a Firefox user, the following will tell you how to search the wikiverse as quickly as humanly possible.

If you're a dyed-in-the-wool Firefox user like me, you probably already know this, but Firefox has a pretty awesome feature called "quick searches". With quick searches you type your search directly into the address bar. If you know where you want to go, this is by far the quickest way to navigate the web. This feature is at once very simple and enormously powerful, because absolutely every URL can be turned into a quick search.

Examples
Here are a two examples from my own quick searches to whet your appetite:

Typing  into the address bar and hitting return, takes me to

» http://en.wikipedia.org/wiki/Wikia

and  takes me to

» http://www.youtube.com/results?search_query=david%20holmes%2069%20police&search=Search

The magic
This is how it works (in principle):

You bookmark a URL that looks like this: » https://google.com/search?q=%s Note the magic string  in the URL? This part will be replaced before Firefox navigates to the page.Add a keyword for the bookmark. Unfortunately you cannot do that from the bookmark dialog. You'll have to do so from the bookmark sidebar &mdash; which is admittedly a bit cumbersome. Here I'll use  as the keyword.Now when you click on the address bar (or hit Ctrl+L) and type , the   will be expanded with whatever you type after the keyword &mdash; in this case   &mdash; and you'll be taken to that page. In this case that's: » https://google.com/search?q=firefox%20quick%20searches 

If that went to fast for you, here's a much more comprehensive and easy-to-follow tutorial that I found via the search above ;)

Wiki Quick Searches
So here are a bunch of quick searches for wikinauts. The first two you can bookmark right off this page! The last two use JavaScript and wikicode doesn't permit JavaScript URLs. You'll have to go to the bookmark sidebar and add them manually.

Search your favourite wiki
Here we add  to the URL to tell Google only to search that particular wiki:

» https://google.com/search?q=site:community.wikia.com%20%s

suggested keyword:  (for Community Central)

Type  to find this blog! (as soon as Google has indexed it)

The same trick can be applied to search any particular wiki, of course.

Go to a specific page of your favourite wiki
Here we use Google's "I'm feeling lucky" feature. Instead of the search result page, you're immediately redirected to the first page on the result list. With wikis that works surprisingly often :)

» https://google.com/search?q=site:community.wikia.com%20%s&sourceid=navclient&gfns=1

suggested keyword:  (for goto Community Central)

Type  to be taken directly to this blog!

Search any wiki
And here's another little trick: With JavaScript we can pick the quick search string apart and re-assemble it however we wish. We'll use that to make both the search term and the wiki variable:

javascript:s='%s'.split(/\s/);location='https://www.google.com/search?q=site:'+s.shift+'.wikia.com%20'+s.join('%20');

suggested keyword:  (for wiki)

The first part of your input will now be split off and used as a wiki name. The last part will be used as the search term(s) again. So type  to search the Borderlands wiki for the Sandhawk!

Go to a specific page on any wiki
Now we'll put the last two tricks together: I'm feeling lucky + JavaScript magic:

javascript:s='%s'.split(/\s/);location='https://www.google.com/search?q=site:'+s.shift+'.wikia.com%20'+s.join('%20')+'&sourceid=navclient&gfns=1';

suggested keword:  (for goto wiki)

Type  to be taken directly to the page about the Sandhawk!

Happy finding!