Jump to content

User:Supdiop/sandbox.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Supdiop (talk | contribs) at 11:04, 30 September 2015 (t). 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.
//from User:MusikAnimal/responseHelper.js

(function() {
	var responses = {}, inline = false, indentation = ":", templateName = "", defaultPrompt = "", anew = false, unresolved;

        if(document.title.indexOf("Editing Wikipedia:Requests for permissions/Rollback (section)") !== -1) {
		indentation = "::";
		templateName = "subst:RFPR";
		defaultPrompt = "Admin's name?";
		responses = {
			"Done" : {
				code : "d",
				summary : "done"
			},
			"Already done" : {
				code : "ad|X",
				summary : "already done "
			},
			"Not done" : {
				code : "nd",
				summary : "not done ",
				prompt : "Reason?"
			},
			"Not done (exp)" : {
				code : "exp|X",
				summary : "not done: mainspace edit count too low ",
				prompt : "Number of mainspace edits?"
			},
			"Not done (rvw)" : {
				code : "rvw",
				summary : "not done: recently requested pending changes reviewer"
			},
			"Not done (nrb)" : {
				code : "nrb",
				summary : "not done: not what rollback is for"
			}
		};
         }