User:Ecwfrk/Chalkboard

= Ecwfrk's Chalkboard =

This page is for scripts, templates, notes, Etc used for various editing and maintenance functions I use to make editing easier.

WP Box
// ==UserScript== // @name         WP box // @namespace    http://r3m0t.geniushost.net/ (Slightly edited by Ecwfrk to work on WoW Wiki) // @description  Add a box to WoW Wiki // @include      http://www.wowwiki.com/* // ==/UserScript== // New Option Format: 

(function {

var navbar, newElement; navbar = document.getElementById('p-autobox'); if (!navbar) { navbar = document.getElementById('p-tb'); } if (navbar) { toolboxOut = document.createElement('div'); toolboxOut.id = 'p-custom'; toolboxOut.className = 'portlet'; heading = document.createElement('h5'); heading.innerHTML = 'custom'; toolboxOut.appendChild(heading); toolbox = document.createElement('div'); toolbox.className = 'pBody'; toolboxOut.appendChild(toolbox); toolbox.innerHTML = 'Village pumpBroken Redirects</li></ul>'; navbar.parentNode.insertBefore(toolboxOut, navbar.nextSibling); }

});

Sig Test
--Roach 18:34, 22 March 2007 (EDT)