var recent2={
recentNonConfirmedPage: 'User:Anchorvale/Recent_Non_Confirmed_Edits', ▼
// Edit these to your liking.
window.processRecentChangesSingle=function(){
// Make sure there's a comma at the end of each line.
NonConfirmedEdits.itemsCurrent--;
▲recentNonConfirmedPage recentnoncomfirmedPage: 'User:Anchorvale/Recent_Non_Confirmed_Edits',
var i = NonConfirmedEdits.itemsCurrent;
linkify: true,
var items = NonConfirmedEdits.items;
updateSeconds: 20,
if (i < 0) { processRecentChangesDisplay(NonConfirmedEdits.bundleRef); return; }
// FIXME: Use <ul> and add a border to each <li>'s
outputSeparator: '<hr>',
var timestamp = Date.parse(getFirstTagContent(items[i],'pubDate'));
apiAulimitUser: 500,
if (timestamp <= processRecentChanges.lastDate) { nextChangeSoon(true); return; }
apiAulimitSysop: 5000,
NonConfirmedEdits.latest = (timestamp > NonConfirmedEdits.latest) ? timestamp : NonConfirmedEdits.latest;
backgroundWindowsMax: 10,
// leave this last one alone
var diffText=getFirstTagContent(items[i],'description').split('</tr>').join('</tr>\n');
dummy: null
var editSummary=diffText.replace( /^<p>(.*?)<\/p>[\s\S]*/, '$1');
var editor=getFirstTagContent(items[i], 'creator') || getFirstTagContent(items[i], 'dc:creator');
if (NonConfirmedEdits.ignore_my_edits && mw.config.get('wgUserName')==editor) { return; }
var article;
var articleTitle;
// 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) {
delete NonConfirmedEdits.delayedLines[article];
}
if (NonConfirmedEdits.filter_anonsOnly && !mw.util.isRegistered(editor)) {
nextChangeSoon(true);
return;
}
};
window.processRecentChangesSingle=function(){
NonConfirmedEdits.itemsCurrent--;
var i = NonConfirmedEdits.itemsCurrent;
var items = NonConfirmedEdits.items;
if (i < 0) { processRecentChangesDisplay(NonConfirmedEdits.bundleRef); return; }
var timestamp = Date.parse(getFirstTagContent(items[i],'pubDate'));
if (timestamp <= processRecentChanges.lastDate) { nextChangeSoon(true); return; }
NonConfirmedEdits.latest = (timestamp > NonConfirmedEdits.latest) ? timestamp : NonConfirmedEdits.latest;
var diffText=getFirstTagContent(items[i],'description').split('</tr>').join('</tr>\n');
var editSummary=diffText.replace( /^<p>(.*?)<\/p>[\s\S]*/, '$1');
var editor=getFirstTagContent(items[i], 'creator') || getFirstTagContent(items[i], 'dc:creator');
if (NonConfirmedEdits.ignore_my_edits && mw.config.get('wgUserName')==editor) { return; }
var article;
var articleTitle;
// 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) {
delete NonConfirmedEdits.delayedLines[article];
}
if (NonConfirmedEdits.filter_anonsOnly && !mw.util.isIPAddress(editor)) {
nextChangeSoon(true);
return;
}
};
importScript ('User:Anchorvale/scripts/RecentChanges.js');
|