User talk:Pfctdayelise/Blanksearchextra.js
MediaWiki does this now. |
This script provides radio buttons for namespace-specific searches on a blank search (they currently only appear at the bottom of non-blank searches).
To make this script work for you, please insert this into your monobook.js file:
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki:Blanksearchextra.js&action=raw&ctype=text/javascript"><\/script>'); //[[MediaWiki talk:Blanksearchextra.js]]
Known to work for: Firefox 1.5/Windows XP
Legacy JavaScript
[edit]Template:JS migration
Hello! This script has been detected as using deprecated parameters that need to be replaced with the updated version. Examples include addOnloadHook()
needs to be replaced with $()
; all wgGlobalVariables need to be properly gotten with mw.config.get( 'wgGlobalVariable' )
; and addPortletLink
needs to be called with mw.util.addPortletLink
. Please see MW:ResourceLoader/Legacy JavaScript for details. Thank you. — {{U|Technical 13}} (e • t • c) 00:21, 19 January 2015 (UTC)