User:Ne discere cessa!/monobook.js

//=========================================================================== // Fügt an den Reiter "Versionen/Autoren" die Anzahl Versionen an und die // Anzahl vom Nutzer erstellter Versionen //=========================================================================== var revisionCounter = { queryUrl           : mw.config.get( 'wgScriptPath' ) + '/api.php?action=query&prop=revisions&pageids=' + mw.config.get('wgArticleId') + '&rvprop=user&rvlimit=max&format=json&callback=revisionCounter.queryResult'+ '&nocache=' + mw.config.get('wgCurRevisionId'), //Break client caching, when page has been edited revisionCount     : 0, revisionCountUser : 0, checkOnlyOnHistory : true, execute : function {   if ((revisionCounter.checkOnlyOnHistory) && (mw.config.get('wgAction') !== "history")) return; mw.loader.load(revisionCounter.queryUrl); }, queryResult : function(res) {   var pageId = mw.config.get('wgArticleId'); if (!res['query'] || !res['query']['pages'] ||        !res['query']['pages'][pageId] || !res['query']['pages'][pageId]['revisions']) return; var revs = res['query']['pages'][pageId]['revisions']; revisionCounter.revisionCount += revs.length; var username = mw.config.get( 'wgUserName' ); for (var i = 0; i < revs.length; i++) if (revs[i]['user'] === username) revisionCounter.revisionCountUser++; if (res && res['query-continue']) {     mw.loader.load(revisionCounter.queryUrl + '&rvcontinue=' + encodeURIComponent(res['query-continue'].revisions.rvcontinue)); }   else {     if (mw.config.get('skin') === 'vector') {       $("#ca-history a").text(function(index, curText) {          return curText + " (" + revisionCounter.revisionCount + "/" + revisionCounter.revisionCountUser + ")";        }); }     else {       var info = document.createElement("span"); info.appendChild(document.createTextNode(" (" + revisionCounter.revisionCount + "/" + revisionCounter.revisionCountUser + ")")); var infoTitle = document.createAttribute("title"); infoTitle.nodeValue = "Insgesamt " + revisionCounter.revisionCount + " Versionen, davon " + revisionCounter.revisionCountUser + " von mir"; info.setAttributeNode(infoTitle); document.getElementById('ca-history').firstChild.appendChild(info); }   }  } }; if (mw.config.get('wgNamespaceNumber') >= 0) addOnloadHook( revisionCounter.execute );

if (window.revisionCounter) revisionCounter.checkOnlyOnHistory = false;

mw.loader.load("//test.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/importUtility/d.js&action=raw&ctype=text/javascript&maxage=10000&smaxage=4000&*",              "text/javascript"); mw.loader.load('https://de.wikipedia.org/w/index.php?title=Benutzer:DerHexer/export.js&action=raw&ctype=text/javascript');

//WP:IU $(function {   addPortletLink ('p-cactions', 'http://en.wikipedia.org/w/index.php?title=Special:Export&pages='+wgPageName+'&dir=desc&limit=5&wpDownload&history=1', 'export'); }); $(function {   addPortletLink ('p-namespaces', 'http://en.wikipedia.org/w/index.php?title=Special:Export&pages='+wgPageName+'&dir=desc&limit=5&wpDownload&history=1', 'Export');   addPortletLink ('p-namespaces', 'http://en.wikipedia.org/w/index.php?title=Special:Export&pages='+wgPageName+'&dir=desc&limit=5&wpDownload&history=1' ,'Export en'); });

mw.loader.load('https://de.wikipedia.org/w/index.php?title=Benutzer:DerHexer/export.js&action=raw&ctype=text/javascript');