Misplaced Pages

User:Rami R/rfppClerk.js

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User:Rami R

This is an old revision of this page, as edited by Legoktm (talk | contribs) at 07:52, 17 September 2013 (fix syntax error). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 07:52, 17 September 2013 by Legoktm (talk | contribs) (fix syntax error)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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.
This user script seems to have a documentation page at User:Rami R/rfppClerk.
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 Misplaced Pages:Bypass your cache.
/**
 * Semi-automated clerking of ]. 
 * See ] for instructions.
 */


var pr_timeout=2;//time until being moved to fulfilled section (in hours)
var fr_timeout=12;//time until being removed from fulfilled section (in hours)
var rpc_now;//will hold the current date
var rpc_offset=0;//timezone offset to GMT/UTC (in mili-seconds)
var rpc_backlog=10;//backlog threshold 
var rpc_nobacklog=4;//backlog cleared threshold
var response_open_type={'ch':true,'chck':true,'q':true,'ques':true,'n':true,'note':true};

addOnloadHook(function () {
	if(wgPageName=="Misplaced Pages:Requests_for_page_protection" &&
			(wgAction=='edit' || wgAction=='submit'))
		addPortletLink('p-tb', 'javascript:rfppClerk()', 'RFPP clerk',
			't-rfpp-clerk', 'WP:RFPP semi-automatic clerk', '', '');
 });

function rfppClerk(){
        alert("This script has been deactivated, as an automated bot task has now begun archiving RFPP.  Please see WT:RFPP for more information.");
}