Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21b43eecb6c231f

Jump to content

Wikipedia:WikiProject User scripts/Scripts/MotD closure script

From Wikipedia, the free encyclopedia

//

///////////////////////////////////////////////////////////////////////////////////////////////////////////
//Created by [[User:Magnus animum]] to make MOTD maintenance work more easy.                             //
//Note: To close nominations using this script, it MUST be done section by section. If you want to mass  // 
//close, I suggest that you do it the old-fashioned way — manually typing the outcome of the nomination. //
///////////////////////////////////////////////////////////////////////////////////////////////////////////
function closemottonom() {
  result = prompt("What was the result?");
  reason = prompt("Why?");
  document.editform.wpTextbox1.value = document.editform.wpTextbox1.value += "\n" + "'''" + result + ":''' " + reason + ". " + "~" + "~" + "~" + "~";
  document.editform.wpSummary.value = document.editform.wpSummary.value + "Closing. result was " + result + " because of " + reason;
  document.editform.wpMinoredit.checked = false;
}

function closemottotab() {
  addPortletLink( 'p-cactions', "javascript:closemottonom()", "close nom", "ca-close nom", "close nom", "close nom");
}

addOnloadHook(function() {
  if (document.title.indexOf("Editing Wikipedia:Motto of the day/Nominations") != -1 && document.title.indexOf("\(section\)") != -1) {
  addOnloadHook(closemottotab);
  }
});

//

//