User:Renegade54/monobook.js

var smallTreeCount = 1; var explicitQuotes = 0;

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(', ','comma')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool(' ','space')); tools.appendChild(document.createTextNode(" || ")); tools.appendChild(newTool('actor','actor')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('background','background')); 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('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','stub')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('pna','pna')); tools.appendChild(document.createTextNode(" || ")); tools.appendChild(newTool('rev ','revert')); 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('duplicate ','duplicate')); 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('punctuation','punctuation')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('copyedit','copyedit')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('spelling','spelling')); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newTool('grammar','grammar')); 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; }

// install User:Cacycle/wikEd in-browser text editor document.write('');