User:Daniel Letalis/global.js

/* Search Fix

ADMINS, WIKI TERMS OF USE PROBABLY DON'T ALLOW THIS SCRIPT TO BE INSTALLED ON YOUR WIKI, SO, YOU CAN INSTALL IT ON YOUR USER BUT NOT ON YOUR WIKI, SORRY :/

TO INSTALL ON YOUR USE, PUT THE CODE(only last one line needed) ON: http://community.wikia.com/wiki/User:YOUR_USERNAME/global.js

(Remember to replace YOUR_USERNAME with your wiki username.) Installing the script on that location will make it work on all wikia wikis.

Use the "..." button in the search dialog to configure If you want to do "go" searches from an external source, do them like this: http://YOUR_WIKI.wikia.com/wiki/Special:Search?search_fix_go=1&search=YOUR SEARCH HERE

(Remember to replace YOUR_WIKI with your wiki name)

Known issues: "go" won't work on pages with special case like abbreviations, only lower-case, UPPER-CASE and Camel-Case.

"go" from external sources is a bit ugly but it does the job.

Location of the script code(not need to do anything with it just for reference): http://dantest.wikia.com/wiki/MediaWiki:Search_Fix.js



importScriptPage('MediaWiki:Search_Fix.js', 'dantest');