Jump to content

User:Quiddity/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Quiddity (talk | contribs) at 20:50, 4 December 2017 (rm test). 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.
/* User:Zhaofeng Li/Reflinks.js */
importScript( 'User:Zhaofeng Li/Reflinks.js' );// Backlink: [[User:Zhaofeng Li/Reflinks.js]]

// test https://wikitech.wikimedia.org/wiki/Nova_Resource:Catgraph/Deepcat
// mw.loader.load( "//de.wikipedia.org/w/index.php?title=User:Christoph Fischer (WMDE)/Gadgets/DeepCat.js&action=raw&ctype=text/javascript" );
// mw.loader.load( "//de.wikipedia.org/w/index.php?title=User:Christoph Fischer (WMDE)/Gadgets/DeepCat.css&action=raw&ctype=text/css" , "text/css" );

// [[User:TheDJ/ActualLivePreview.js]]
// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:TheDJ/ActualLivePreview.js&action=raw&ctype=text/javascript');

importScript( 'User:Qwertyytrewqqwerty/DisamAssist.js' ); // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js]]


// Test Yair rand's wikidata info script
mw.loader.load('https://www.wikidata.org/w/index.php?title=User:Yair_rand/WikidataInfo.js&action=raw&ctype=text/javascript');

// Not working at the moment - Test Magnus Manske's wikidata script -- http://magnusmanske.de/wordpress/?p=342
// mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Magnus_Manske/autodesc.js&action=raw&ctype=text/javascript');

// Reading time
$( '#firstHeading' )
	.append(
		$( '<small>' )
			.text(
				" (" +
				Math.round(
					$( '#mw-content-text p' )
						.text()
						.split(" ")
						.length / 225
				) 
				+ " minutes)"
			)
	)