User:BoatsAreRockable/global.js

importScriptPage('PurgeButton/code.js', 'dev');

function addElement { // create a new div element // and give it some content var newDiv = document.createElement("div"); var newContent = document.createTextNode("Hi there and greetings!"); newDiv.appendChild(newContent); //add the text node to the newly created div.

// add the newly created element and its content into the DOM var currentDiv = document.getElementById("WikiaPageHeader"); document.body.insertBefore(newDiv, currentDiv); }