Difference between revisions of User:Viceroy Sam/common.js

Jump to navigation Jump to search
(test)
(Just take this I'm fucking done)
Line 1: Line 1:
importScript('User:Sam.Watson/nightpedia.js')
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() {
$( document ).ready( function() {

Revision as of 02:34, 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();
	} );
} );