MediaWiki:Monobook.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
/**
 * Change default search from "go" to "search" per
 * commons.wikimedia.org/wiki/Commons:Village_pump/Archive/2009Feb#Default_our_search_box_to_.22Search.22_instead_of_.22Go.22
 */
importScript('MediaWiki:DefaultSearch.js');
// several users in monobook are still using Lupo's hot 2008-01-20.
// This line can be removed when no results for this search:
// https://commons.wikimedia.org/w/index.php?search=insource%3A%22hotcat_check_action%22+insource%3A%22wgAction%22+intitle%3Amonobook.js&title=Special%3ASearch&profile=advanced&fulltext=1&advancedSearch-current=%7B%22fields%22%3A%7B%22intitle%22%3A%22monobook.js%22%7D%7D&ns2=1
window.wgAction = mw.config.get('wgAction');
// Various outdated Monobook user scripts use wgNamespaceNumber global.
window.wgNamespaceNumber = mw.config.get('wgNamespaceNumber');
// Various outdated Monobook user scripts use wgTitle global.
window.wgTitle = mw.config.get('wgTitle');
// Various outdated Monobook user scripts use wgUserName global.
window.wgUserName = mw.config.get('wgUserName');