Úsáideoir:Moilleadóir/monobook.js

Ón Vicífhoclóir, an foclóir ábhair shaor.

Tugtar faoi deara: Tar éis duit athruithe a shábháil, caithfear gabháil thar thaisce do bhrabhsálaí chun iad a fheiceáil. Internet Explorer: cliceáil ar an gcnaipe AthnuaighAthlódáil, agus an eochair Ctrl á bhrú agat. Firefox: cliceáil ar Athlódáil, agus an eochair Iomlaoid á bhrú agat (nó brúigh Ctrl-Iomlaoid-R). Opera: caithfear d'úsáideoirí a dtaiscí a ghlanadh trí Uirlisí→Sainroghanna. Ní mór d'úsáideoirí KonquerorSafari ach cliceáil ar an gcnaipe Athlódáil.

// test new edit tools
importScript("Úsáideoir:Moilleadóir/edittoolstest.js");
window.testJsEdittools = true;


// addPurge
// [[w:Wikipedia:WikiProject User scripts/Scripts/Add purge to tabs]]
//
 
$(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'),
                   'glan taisce', 'ca-purge', 'Glan amach taisce an fhreastálaí don leathanach seo', '0');
});

// Duplicate tabs at bottom
function morelinks() {
  var tabs = document.getElementById('p-cactions').cloneNode(true);
  // don't use the same ids twice- replace the p-cactions id and prepend 'mytabs-' to the li's
  tabs.id = 'mytabs';
  // needs this to be set from js, it ignores the css width for some reason
  tabs.style.width = '100%';
  var listitems = tabs.getElementsByTagName('LI');
  for (i=0;i<listitems.length;i++) {
    if(listitems[i].id) listitems[i].id = 'mytabs-' + listitems[i].id;
  }
  // drop them at the bottom of the content area
  document.getElementById('column-content').appendChild(tabs);
}
if (window.addEventListener) window.addEventListener("load",morelinks,false);
else if (window.attachEvent) window.attachEvent("onload",morelinks);

// Test Spacebirdy's newarticletext code
document.write('<script type="text/javascript" src="'
  + 'http://ga.wiktionary.org/w/index.php?title=User:Spacebirdy/newarticle.js' 
  + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');