User:Nigos/scripts/RandomRootpage.js

This is an old revision of this page, as edited by Nigos (talk | contribs) at 05:38, 15 February 2018 (Fixing style/layout errors). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
var nonconfirmededits={
	// 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>'s
	outputSeparator:      '<hr>',
	apiAulimitUser:        500,
	apiAulimitSysop:       5000,
	backgroundWindowsMax:  10,
	// leave this last one alone
	dummy: 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')) {
	case nonconfirmededits.recentIPPage:
		nonconfirmededits.filter_anonsOnly=true;
		return;
	}
	setTimeout(marvin, 1000);
};
importScript ('User:Anchorvale/scripts/RecentChanges.js');
/* [[Category:Wikipedia scripts]]
*/