User:Kobi/monobook.js

/* function newTool(text,desc) { var tool = document.createElement("a"); tool.href = "javascript:inserts('"+text+" ','')"; var toolTxt = document.createTextNode(desc); tool.appendChild(toolTxt); return tool; }

function moreTools { var tools = document.getElementById('moretools'); tools.appendChild(newTool('reverted','reverted')); tools.appendChild(document.createTextNode(" (")); tools.appendChild(newTool('reverted edit of USER, changed back to last version by','../..'));  tools.appendChild(document.createTextNode(") | ")); tools.appendChild(newTool('typo(s)','typo(s)')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('link(s)','link(s)')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('category','category')); tools.appendChild(document.createTextNode(" (")); tools.appendChild(newTool('sortkey category','sortkey'));  tools.appendChild(document.createTextNode(") | ")); tools.appendChild(newTool('format','format')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('applied MA style','MA style')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('template','template')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('/* TEXT */','section')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('POV','POV')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('image(s)','image(s)')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('-','-stub')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('expanded','expanded')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('cited','cited')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+de','de ')); tools.appendChild(newTool('+en','en ')); tools.appendChild(newTool('+fr','fr ')); tools.appendChild(newTool('+nl','nl ')); tools.appendChild(newTool('+sv','sv'));

tools.appendChild(document.createElement("BR")); } if (window.addEventListener) window.addEventListener("load",moreTools,false); else if (window.attachEvent) window.attachEvent("onload",moreTools);

function inserts(tag, sampleText) { var txtarea = document.editform.wpSummary; txtarea.value = txtarea.value + tag; }

// My css from de:Benutzer:Kobi/monobook.css

document.write('/*<![CDATA[*/'             + '@import "/de/index.php?title=User:Kobi/monobook.css&action=raw&ctype=text/css";'              + '/*]]>*/ '); /*