User:Caroig/monobook.js

//add ExtEdit link $(function{ var editTab = document.getElementById("ca-edit");  if (!editTab) return;  mw.util.addPortletLink("p-cactions", editTab.firstChild.href + "&externaledit=true", "external", "ca-exted", "Edit with External Editor","", editTab.nextSibling); });

//add Geoboxer for Czech settlements $(function{ var editTab = document.getElementById("ca-edit");  if (!editTab) return;  mw.util.addPortletLink("p-cactions", 'http://wikipedia.paloch.net/Geobox2.php?page='+location.href+'&source=cs_obec', "geoboxer.cz", "ca-geobox_cz", "Geoboxer for Slovak settlements","", editTab.nextSibling); });

//add Geoboxer for Slovak settlements $(function{ var editTab = document.getElementById("ca-edit");  if (!editTab) return;  mw.util.addPortletLink("p-cactions", 'http://wikipedia.paloch.net/Geobox2.php?page='+location.href+'&source=sk_obec', "geoboxer.sk", "ca-geobox_sk", "Geoboxer for Slovak settlements","", editTab.nextSibling); });

//add Geoboxer link $(function{ var editTab = document.getElementById("ca-edit");  if (!editTab) return;  mw.util.addPortletLink("p-cactions", 'http://wikipedia.paloch.net/Geobox2.php?page='+location.href, "geoboxer", "ca-geobox", "Geoboxer","", editTab.nextSibling); });

// addPurge Link $(function {    var hist; var url;    if (!(hist = document.getElementById('ca-history') )) return;    if (!(url = hist.getElementsByTagName('a')[0] )) return;    if (!(url = url.href )) return;    mw.util.addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'), 'purge', 'ca-purge', 'Purge server cache for this page', '0'); });

// install User:Cacycle/wikEd in-browser text editor document.write('');