User:Jerry/quicklinks.js

//Please leave this link: [[User:Jerry/quicklinks.js]]
//<pre><nowiki>

// Quicklinks
// To install this, you can copy it into your monobook.js or use a script-inclusion
// method (see WikiProject User Scripts). It produces hypertext anchor links at the
// top of pages to purge the current page's cahce, and to several category pages of
// particular use to administrators.  You can copy this script to your own userspace
// modify or remove the quicklinks if you don't like the ones I included.
// by User:Jerry

addOnloadHook(function () {
  // if this is preview page or generated page, stop
  if(
    document.getElementById("wikiPreview") ||
    document.getElementById("histlegend‎") ||
    document.getElementById("difference‎") ||
    document.getElementById("watchdetails") ||
    document.getElementById("ca-viewsource") ||
    window.location.href.indexOf("/wiki/Special:") != -1
  ) {
    if(window.location.href.indexOf("&action=edit&section=0") != -1) {
      document.getElementById("wpSummary").value = "/* Intro */ ";
    }
    return;
  };

  // get the page title
  var pageTitle = wgPageName;

  // create div and set innerHTML to link
  var divContainer2 = document.createElement("div");
  divContainer2.innerHTML = '<div>[<a href="http://en.wikipedia.org/wiki/'+pageTitle+'?action=purge">purge cache</a>] [<a href="http://en.wikipedia.org/wiki/Wikipedia:Usernames_for_administrator_attention?action=purge">WP:UAA</a>] [<a href="http://en.wikipedia.org/wiki/Wikipedia:Requests for page protection?action=purge">WP:RFPP</a>] [<a href="http://en.wikipedia.org/wiki/Wikipedia:Administrator_intervention_against_vandalism?action=purge">WP:AIV</a>] [<a href="http://en.wikipedia.org/wiki/Category:Candidates_for_speedy_deletion?action=purge">WP:CSD</a>] [<a href="http://en.wikipedia.org/wiki/Wikipedia:Stub types for deletion?action=purge">WP:SFD</a>] [<a href="http://en.wikipedia.org/wiki/Wikipedia:Administrators%27_noticeboard?action=purge">WP:AN</a>] [<a href="http://en.wikipedia.org/wiki/User:Jerry/Maint?action=purge">Maint</a>] [<a href="http://en.wikipedia.org/wiki/Wikipedia:Articles_for_deletion/Old/Open_AfDs?action=purge">WP:AFDO</a>] [<a href="http://tools.wikimedia.de/~agony/orphantalk/index.php?l=en">OrGen</a>] [<a href="http://en.wikipedia.org/wiki/Special:NewPages">New</a>] [<a href="http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Deletion_sorting/Schools?action=purge">School</a>]</div>';

  // insert divContainer2 into the DOM below the h1
  if(window.location.href.indexOf("&action=edit") == -1) {
    document.getElementById("content").insertBefore(divContainer2, document.getElementsByTagName("h1")[0]);

 }

});

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.