Spring til indhold

Bruger:Harthacnut/monobook.js

Fra Wikipedia, den frie encyklopædi
/* add a redirect button to the edit page toolbar */
if (mwCustomEditButtons) {
    mwCustomEditButtons[mwCustomEditButtons.length] = {
      imageFile: "//upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png",
      speedTip: "Redirect",
      tagOpen: "#REDIRECT [[",
      tagClose: "]]",
      sampleText: "Indsæt tekst"
    };
}

// ---------------------------------------
// BEGIN COMMONSUPLOAD
function linkUploadToCommons() {
     if (document.getElementById("t-commons")) return;
     var li_current = document.getElementById("t-upload");
     if (!li_current) return;
     var li_next = li_current.nextSibling;
     var ul_node = li_current.parentNode;
     var li = document.createElement("li");
     li.setAttribute("id", "t-commons");
     li.setAttribute("title", "Upload et billede eller en anden mediefil til deling for alle landes Wikipediaer");
     li.appendChild(document.createElement("a"));
     li.firstChild.setAttribute("href","http://commons.wikimedia.org/wiki/Special:Upload");
     li.firstChild.appendChild(document.createTextNode("Læg en fil op på Commons"));
     ul_node.insertBefore(li, li_next);
}
$(linkUploadToCommons);
//
// END COMMONSUPLOAD
// ---------------------------------------

// ---------------------------------------
// BEGIN PATROLLINK
function linkPatrol() {
     if (document.getElementById("n-patrol")) return;
     var li_current = document.getElementById("n-recentchanges");
     if (!li_current) return;
     var li_next = li_current.nextSibling;
     var ul_node = li_current.parentNode;
     var li = document.createElement("li");
     li.setAttribute("id", "n-patrol");
     li.setAttribute("title", "Se ikke-patruljerede ændringger");
     li.appendChild(document.createElement("a"));
     li.firstChild.setAttribute("href","/w/index.php?title=Speciel:Recentchanges&days=30&limit=5000&hideliu=1&hidepatrolled=1");
     li.firstChild.appendChild(document.createTextNode("Patruljér"));
     ul_node.insertBefore(li, li_next);
}
$(linkPatrol);
//
// END PATROLLINK
// ---------------------------------------

// Velkomst script
mw.loader.load('//da.wikipedia.org/w/index.php?title=Wikipedia:Velkomstscript/velkomst.js&action=raw&ctype=text/javascript');