Jump to content
Wikimedia Meta-Wiki

User:AuFCL/global.js

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by AuFCL (talk | contribs) at 05:51, 1 September 2014 (experimental). It may differ significantly from the current version .
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
 //If there is a "Continue Editing" button present, then automatically activate it (but not when Previewing an edit):
 varEditForm=document.evaluate(
 "//a[contains(@href,'#editform')]",
 document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null
 );
 //N.B. "action=edit"" set when initially editting page; Preview sets "action=submit" instead.
 if(EditForm.snapshotLength&&/action=edit/.test(location.href)){
 EditForm.snapshotItem(0).click();
 }

AltStyle によって変換されたページ (->オリジナル) /