User:Таѡаіо/global.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/WikiSyntaxTextMod/r.js&action=raw&bcache=1&maxage=604800&ctype=text/javascript",
"text/javascript");
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript');
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
$("<div id='authors' style='font-size:84%; line-height:1.2em; margin:0 0 0 1em; width:auto;'>von <span id='authorsresult'></span><span id='authorsloading'>...</span></div>").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") && (mw.config.get('wgServer') == "//de.wikipedia.org") ) $( authors.execute );
window.hotcat_no_autocommit = 1; // HotCat-Bearbeitungen werden nicht sofort gespeichert, sondern führen zum Bearbeitungsfenster