User:Florian K/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('+','added:')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('-','removed:')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('actor','actor')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('backround','background information')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('category','category')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('citation','citation')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('IMDb','IMDb')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('de','Interwiki MA/de')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('nl','Interwiki MA/nl')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('ext. link(s)','external link(s)')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('link(s)','link(s)')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('picture(s)','picture(s)')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('stub','template:stub')); tools.appendChild(document.createTextNode(" || ")); tools.appendChild(newTool('rev','reverted:')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('vandalism','vandalism')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('disambig','disambig')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('duplication','duplication')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('formatting','formatting')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('linkfix','linkfix')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('spelling','spelling')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('typo','typo')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('wikified','wikified')); tools.appendChild(document.createTextNode(" || ")); tools.appendChild(newTool('copyvio','copyvio')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('see Talk','see Talk'));

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; }