User:Intricated/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('+','+')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('-','-'));

tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+fm','text: formatting')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+sp','text: spelling')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('-typo','text: typo')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('disambig','text/link: disambig'));

tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+lk(s)','link(s)')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('linkfix(es)','link: fix')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+wiki-link(s)','link: wikipedia')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+imdb-link','link: IMDb')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+ext-link(s)','link: external')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+ref/cite(s)','reference/citation'));

tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+cat','category'));

tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+more info','info: general')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+actor info','info: actor')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+bg info','info: bg')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+ep info','info: episode'));

tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('stub','stub')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('rv','rv')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('-vandalism','vandalism')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('-dup','duplication')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('copyvio','copyvio')); tools.appendChild(document.createTextNode(" | "));

tools.appendChild(newTool('see Talk','see Talk')); tools.appendChild(document.createTextNode(" | "));

tools.appendChild(newTool('+pic(s)','picture(s)')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('tweak pic','tweak pic')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('+pic table','pic table'));

tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('start','start'));

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