User blog comment:Dopp/Updates to How We Search/@comment-731149-20120509084707/@comment-731149-20120509231011

The original version was more complex because it simulated "Go" even that it was broken on wikia. The current version has the following options:


 * What to use when you press Enter: Search/Go
 * Open all searches in a new window
 * Disable wikia autocomplete

The code is a lot, because the search is configurable(config dialog, cookies and css), if you don't need to use any of the options I mentioned, you should use Eladkse script.

But keep in mind that if you want to understand the code and be safe, the sortcut that uses 'SearchGoButton/code.js', 'dev' is not safe, while I write this anyone can edit that page and insert malicious code(not very malicious but there might be ways to get some info, or at least do vandalism). So you would need to copy the code instead of use the shortcut.

The pages where I have put my code, can only be edited by me and admins from my wiki, but you can also examine the code and just copy paste all the code instead of the shortcut, that's why I give direct link to the code in the notes.

Notes and shortcut located here: http://community.wikia.com/wiki/User:Daniel_Letalis/global.js

Shortcut takes you to code inside a wiki where only me and admins from another big wiki can edit, here: http://dantest.wikia.com/wiki/MediaWiki:Search_Fix.js