From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
729 bytes removed
, 30 July 2011
m
|
|
Line 145: |
Line 145: |
| updateClocks(); | | updateClocks(); |
| } | | } |
|
| |
| // This will add an [edit] link at the top of all pages except preview pages and the main page
| |
| // by User:Pile0nades (blatantly stolen from Wikipedia by User:The dark lord trombonator
| |
|
| |
| // Add an [edit] link to pages
| |
| 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§ion=0") != -1) {
| |
| document.getElementById("wpSummary").value = "/* Intro */ ";
| |
| }
| |
| return;
| |
| };
| |
|
| |
|
| /* </pre> */ | | /* </pre> */ |