User:Sdamon/monobook.js

interactiveTrees = 0;

function newToolBody(text,desc) { var tool = document.createElement("a"); tool.href = 'javascript:insertsBody("'+text+' ","")'; var toolTxt = document.createTextNode(desc); tool.appendChild(toolTxt); return tool; } 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 insertsBody(tag, sampleText) { var txtarea = document.editform.wpTextbox1; txtarea.value = txtarea.value + tag; } function inserts(tag, sampleText) { var txtarea = document.editform.wpSummary; txtarea.value = txtarea.value + tag; } function moreTools { var tools = document.getElementById("moretools"); tools.appendChild(newToolBody("*Delete. ","Delete")); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newToolBody("*Keep. ","Keep")); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newToolBody("*Move. ","Move")); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newToolBody("*Merge. ","Merge")); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newToolBody("*Comment. ","Comment")); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newToolBody("*Agree. ","Agree")); tools.appendChild(document.createTextNode(" | ")); tools.appendChild(newToolBody("*Disagree. ","Disagree")); tools.appendChild(document.createElement("HR"));

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("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")); } if (window.addEventListener) window.addEventListener("load",moreTools,false); else if (window.attachEvent) window.attachEvent("onload",moreTools);