Jump to content

User:Timeshifter/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Timeshifter (talk | contribs) at 11:07, 7 July 2012 (Shift to open search in new tab.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* Integrated watchlist. 
/* See: en.wikipedia.org/wiki/User_talk:Yair_rand/interwikiwatchlist.js */

importScript ("User:Yair rand/interwikiwatchlist.js");

/* Open search result lists and suggestions in new browser tabs */
/* See: commons.wikimedia.org/wiki/MediaWiki_talk:Search-results-new-tab.js */

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

/* Shift to open search in new tab */

$('#searchform').bind('keyup keydown mousedown', 
  function (e){ $(this).attr('target', e.shiftKey?'_blank':'') })

/* Reference Tooltips. Version for testing before adding to gadget */
/* See: en.wikipedia.org/wiki/User:Yair_rand/ReferenceTooltips */
/* Discussion: en.wikipedia.org/wiki/User_talk:Yair_rand/ReferenceTooltips */

importScript('User:Yair rand/ReferenceTooltips.js'); importStylesheet('User:Yair rand/ReferenceTooltips.css');