Fandom

Wikia Developers Wiki

SearchGoButton

908pages on
this wiki
Add New Page
Talk22 Share
Nuvola apps kservices This article is about a system or feature that is no longer in use.
  • The page is retained for historical reasons.
This script is for PERSONAL use only!

You are free to install this script for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:Common.js or MediaWiki:Wikia.js), as it would violate Fandom's Terms of Use. (See the customization policy)

The SearchGoButton script adds a 'go' button to the Oasis searchbox, which takes you directly to the page whose title matches the search (if it exists). This also becomes the default action when the enter key is used.

Usage

Installation

If you would like to use the script, add the following either to your global.js on Community Central (to make the script available on all wikis) or to Special:MyPage/wikia.js on specific wikis.

This script is for personal use only. Do not enable this script on a wiki-wide basis.

importScriptPage('SearchGoButton/code.js', 'dev');


This script only works properly if the 'Enable Go-Search' setting is disabled in your user preferences.

Localisation

This script can be used on any language wiki without translation.

See Also

SearchSuggest

History

16 May 2012
Eladkse: Fixed code to work with new searchbar. Please make sure 'Enable Go-Search' is disabled in your user preferences.
9 May 2012
Eladkse: Added code for v2 Special:Search.
5 May 2012
Eladkse: Initial release. Added Firefox compatibility.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.