User:Sophivorus/common.js

var random = Math.floor( Math.random * 9999 ); var query = { 'cache': false, 'async': true, 'crossDomain': true, 'dataType': 'jsonp', 'url': '//mediawiki.solutions/gadgets/InlineComments/InlineComments.js?' + random, 'method': 'GET', 'headers': { 'accept': 'application/json', 'Access-Control-Allow-Origin': '*' } }; //$.ajax( query, eval ); //mw.loader.load( '//en.wikipedia.org/wiki/User:Sophivorus/ExcerptHunter.js?action=raw&ctype=text/javascript' ); //mw.loader.load( '//en.wikipedia.org/wiki/User:EGardner_(WMF)/codex-hello-world.js?action=raw&ctype=text/javascript' );

/** * ProveIt is a reference manager for Wikipedia and any other MediaWiki wiki * Documentation at https://www.mediawiki.org/wiki/ProveIt * * This initialization script sets the configuration options specific to this wiki * and then loads the ProveIt code directly from the central Wikimedia repository */ function loadProveIt { mw.config.set( {		'proveit-tag': 'proveit', // Revision tag defined at Special:Tags (optional)		'proveit-summary': 'Reference edited with #proveit', // Automatic edit summary (optional)		'proveit-templates': [ // Local citation templates (without namespace)			'Citation',			'Cite arXiv',			'Cite AV media',			'Cite book',			'Cite bioRxiv',			'Cite comic',			'Cite encyclopedia',			'Cite episode',			'Cite interview',			'Cite journal',			'Cite magazine',			'Cite news',			'Cite paper',			'Cite press release',			'Cite report',			'Cite sign',			'Cite speech',			'Cite thesis',			'Cite tweet',			'Cite video',			'Cite video game',			'Cite web',		],		'proveit-namespaces': [ // Supported namespaces, see https://www.mediawiki.org/wiki/Manual:Namespace_constants			0, // Main namespace			2, // User namespace		],		'proveit-normalize-warning': ' Warning! Edits that only do cosmetic changes may be considered disruptive. See WP:COSMETICBOT for more.' } );	mw.loader.load( '//www.mediawiki.org/w/load.php?modules=ext.gadget.ProveIt&only=scripts' );	mw.loader.load( '//www.mediawiki.org/w/load.php?modules=ext.gadget.ProveIt&only=styles', 'text/css' ); }

// Only load when editing mw.hook( 'wikipage.editform' ).add( loadProveIt ); mw.hook( 've.activationComplete' ).add( loadProveIt );