User:Daniel Mietchen/common.js

importScript('MediaWiki:Wdsearch.js'); mw.loader.load( "//www.mediawiki.org/w/index.php?title=User:Phiarc/October2011/mabe-october.js&action=raw&ctype=text/javascript" ); mw.loader.load("//www.mediawiki.org/w/index.php?title=User:Magnus_Manske/wikipic.js&action=raw&ctype=text/javascript"); //per https://twitter.com/MagnusManske/status/587566201167052800 mw.loader.load("//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch-autodesc.js&action=raw&ctype=text/javascript"); // // //de:Benutzer:APPER/WikiHistory.js // var authors = { //  loadinganimation : 0, //  execute : function  { //  	if (mw.config.get('wgArticleId') == 0) return; // no deleted articles //  	if (mw.config.get('wgCurRevisionId') != mw.config.get('wgRevisionId')) return; // only current revision //  	$(" von ...  ").insertBefore("#contentSub"); //  	loadinganimation = window.setInterval( function { if ($("#authorsloading").html == ".  ") $("#authorsloading").html(" . "); else if ($("#authorsloading").html == " . ") $("#authorsloading").html("  ."); else $("#authorsloading").html(".  "); }, 300); //  	mw.loader.load("//tools.wmflabs.org/wikihistory/dewiki/getauthors.php?page_id=" +  mw.config.get('wgArticleId')); //  }, //   resultloaded : function( res, old ) { //  	$("#authorsresult").html(res); //  	if (old == 1) mw.loader.load("//tools.wmflabs.org/wikihistory/dewiki/getauthors.php?page_id=" +  mw.config.get('wgArticleId') + '&onlynew=1'); //  }, //   stoploading : function { //  	clearInterval(loadinganimation); //  	$('#authorsloading').remove; //  } // } // if ( (mw.config.get('wgNamespaceNumber') == 0) && (mw.config.get('wgAction') == "view") ) $( authors.execute );

// // // var asqmReq = false; // if (mw.config.get('wgNamespaceNumber') == 0) { //  $(' ASQM ' + //   ' ').insertAfter("#ca-history"); // } // function asqm { //  if ($('#asqmContainer').css('visibility') == 'hidden') { //    $('#asqmContainer').css('visibility', 'visible'); //    if (!asqmReq) { //      $('#asqmContainer').html(''); //      $.getJSON("http://toolserver.org/~render/stools/asqm/query/json/id/" + //           mw.config.get('wgArticleId') + "/lang/" + mw.config.get('wgPageContentLanguage') + "/asqmid/54874c5d?callback=?", function(data) { //         var output = " "; //         asqmReq = true; //         $('#asqmContainer').html(output); //       }); //    } //   } else { //    $('#asqmContainer').css('visibility', 'hidden'); //  } // } //syntax highlighter mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=text/javascript'); // from https://en.wikipedia.org/w/index.php?title=Wikipedia:Correct_typos_in_one_click&oldid=1119767322 mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Uziel302/typo.js&action=raw&ctype=text/javascript');