This is an old revision of this page, as edited by Nigos(talk | contribs) at 05:40, 15 February 2018(Making it work). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.Revision as of 05:40, 15 February 2018 by Nigos(talk | contribs)(Making it work)
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page.
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.
varnonconfirmededits={// Edit these to your liking.// Make sure there's a comma at the end of each line.recentnoncomfirmedPage:'User:Anchorvale/Recent_Non_Confirmed_Edits',linkify:true,updateSeconds:20,// FIXME: Use <ul> and add a border to each <li>'soutputSeparator:'<hr>',apiAulimitUser:500,apiAulimitSysop:5000,backgroundWindowsMax:10,// leave this last one alonedummy:null};window.addMarvin=function(){mw.util.addPortletLink('p-tb',mw.util.getUrl(nonconfirmededits.recentnonconfirmedPage),mw.msg('avt-ip-rc'),'toolbox_Non_confirmed_edits');};window.maybeStart=function(){switch(mw.config.get('wgPageName')){casenonconfirmededits.recentIPPage:nonconfirmededits.filter_anonsOnly=true;return;}setTimeout(marvin,1000);window.processRecentChangesSingle=function(){NonConfirmedEdits.itemsCurrent--;vari=NonConfirmedEdits.itemsCurrent;varitems=NonConfirmedEdits.items;if(i<0){processRecentChangesDisplay(NonConfirmedEdits.bundleRef);return;}vartimestamp=Date.parse(getFirstTagContent(items[i],'pubDate'));if(timestamp<=processRecentChanges.lastDate){nextChangeSoon(true);return;}NonConfirmedEdits.latest=(timestamp>NonConfirmedEdits.latest)?timestamp:NonConfirmedEdits.latest;vardiffText=getFirstTagContent(items[i],'description').split('</tr>').join('</tr>\n');vareditSummary=diffText.replace(/^<p>(.*?)<\/p>[\s\S]*/,'$1');vareditor=getFirstTagContent(items[i],'creator')||getFirstTagContent(items[i],'dc:creator');if(NonConfirmedEdits.ignore_my_edits&&mw.config.get('wgUserName')==editor){return;}vararticle;vararticleTitle;// NB article is the link attribute - a fully qualified URL// strip out the &diff=...&oldid=... bit to leave only ?title=...article=getFirstTagContent(items[i],'link').split('&')[0];if(NonConfirmedEdits.delayedLines[article]&&NonConfirmedEdits.delayedLines[article].editor!=editor){deleteNonConfirmedEdits.delayedLines[article];}if(NonConfirmedEdits.filter_anonsOnly&&!mw.util.isRegistered(editor)){nextChangeSoon(true);return;}};window.processRecentChangesSingle=function(){NonConfirmedEdits.itemsCurrent--;vari=NonConfirmedEdits.itemsCurrent;varitems=NonConfirmedEdits.items;if(i<0){processRecentChangesDisplay(NonConfirmedEdits.bundleRef);return;}vartimestamp=Date.parse(getFirstTagContent(items[i],'pubDate'));if(timestamp<=processRecentChanges.lastDate){nextChangeSoon(true);return;}NonConfirmedEdits.latest=(timestamp>NonConfirmedEdits.latest)?timestamp:NonConfirmedEdits.latest;vardiffText=getFirstTagContent(items[i],'description').split('</tr>').join('</tr>\n');vareditSummary=diffText.replace(/^<p>(.*?)<\/p>[\s\S]*/,'$1');vareditor=getFirstTagContent(items[i],'creator')||getFirstTagContent(items[i],'dc:creator');if(NonConfirmedEdits.ignore_my_edits&&mw.config.get('wgUserName')==editor){return;}vararticle;vararticleTitle;// NB article is the link attribute - a fully qualified URL// strip out the &diff=...&oldid=... bit to leave only ?title=...article=getFirstTagContent(items[i],'link').split('&')[0];if(NonConfirmedEdits.delayedLines[article]&&NonConfirmedEdits.delayedLines[article].editor!=editor){deleteNonConfirmedEdits.delayedLines[article];}if(NonConfirmedEdits.filter_anonsOnly&&!mw.util.isIPAddress(editor)){nextChangeSoon(true);return;}};};/* [[Category:Wikipedia scripts]]*/