Defnyddiwr:Arwel Parry/monobook.js

Oddi ar Wicipedia

Sylwer: Wedi i chi roi'r dudalen ar gadw, efallai y bydd angen mynd heibio celc eich porwr er mwyn gweld y newidiadau. Mozilla / Firefox / Safari: pwyswch ar Shift tra'n clicio Ail-lwytho/Reload, neu gwasgwch Ctrl-Shift-R (Cmd-Shift-R ar Apple Mac); IE: pwyswch ar Ctrl tra'n clicio Adnewyddu/Refresh, neu gwasgwch Ctrl-F5; Konqueror:: cliciwch y botwm Ail-lwytho/Reload, neu gwasgwch F5; Opera: efallai y bydd angen gwacau'r celc yn llwyr yn Offer→Dewisiadau / Tools→Preferences.

/* turn off shortcut keys */
ta = false;
 
/* add edit tabs at bottom of the screen as well as the top */
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);