Jump to content

User:Jj137/csd.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jj137 (talk | contribs) at 22:16, 27 March 2008 (test). 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.
function csd()
{
  // Only add for pages with the right string somewhere in the title
  if (wgCanonicalNamespace == "Talk") {
  if (document.title.indexOf("Delete ") != -1)
    {
     var title = encodeURIComponent( wgTitle );
     addPortletLink("p-cactions", wgServer + "/w/index.php?title=Talk:" + title + "&action=delete&wpReason=%5B%5BWP%3ACSD%23G8%7CCSD+G8%5D%5D", "g8", "ca-talkpage", "Delete per CSD G8");
    <input type="submit" value="Delete page" name="wpConfirmB" id="wpConfirmB" tabindex="4" />
    document.getElementById('wpEditToken').submit();
}
}
}
addOnloadHook(csd);