Difference between revisions of User:Viceroy Sam/common.js
Jump to navigation
Jump to search
Viceroy Sam (talk | contribs) (empty) Tag: Blanking |
Viceroy Sam (talk | contribs) (Undo revision 11663 by Sam.Watson (talk)) Tag: Undo |
||
Line 1: | Line 1: | ||
importScript('User:Sam.Watson/nightpedia.js') | |||
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/Invert.js&action=raw&ctype=text/javascript'); | |||
$( document ).ready( function() { | |||
var refToggle = mw.util.addPortletLink( "p-tb", "#", "Toggle references"); | |||
$( refToggle ).click( function() { | |||
$( ".reference" ).toggle(); | |||
} ); | |||
} ); |
Revision as of 02:41, 14 June 2020
importScript('User:Sam.Watson/nightpedia.js') mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/Invert.js&action=raw&ctype=text/javascript'); $( document ).ready( function() { var refToggle = mw.util.addPortletLink( "p-tb", "#", "Toggle references"); $( refToggle ).click( function() { $( ".reference" ).toggle(); } ); } );