User:Stuartyeates (code test)/processor.js

// function doProcessor{ var insertPosition = document.getElementById("bodyContent"); var newHTML = document.createElement("div"); newHTML.innerHTML = " New Content  "; insertPosition.appendChild(newHTML); }

addOnloadHook(function {	if(wgAction == 'view' || wgAction == 'submit' || wgAction == 'historysubmit' || wgAction == 'purge'){ //    addPortletLink('p-tb', 'javascript:alert("You clicked on processor")', 'Processor', 't-processor', 'Run Processor on the current page', , );    mw.util.addPortletLink('p-tb', 'javascript:doProcessor',  'Processor', 't-processor', 'Run Processor on the current page', , );  } }); //