User:Coke/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('actor','actor')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('backround','bg info')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('category','cat')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('cite','cite')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('wiki-IMDb','wiki-IMDb')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('ext. link(s)','ext. 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','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('disambig','disambig')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('duplication','duplic')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('formatting','format')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('linkfix','linkfix')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('sp','spell')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('typo','typo')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('wikified','wiki')); 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('tweak pic','tweak pic')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('picture table','pic table')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('inuse','inuse'));

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