User:Timeshifter/Open search in new tab.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.
// Ctrl-click (PC) and Command-click (Mac) to open search in new tab. 
// The Command key is the Apple key on Apple keyboards. 
// commons.wikimedia.org/wiki/MediaWiki_talk:Gadget-search-new-tab.js
// On the Commons enable the gadget in your preferences. On other wikis...
// Add line below to [[Special:MyPage/common.js]] (User:YOUR-USER-NAME/common.js)

mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-search-new-tab.js&action=raw&ctype=text/javascript');