User:HeavenMonkey/wikiswapper.js

function wikiswapper_init { var container   = document.getElementById("p-cactions"); container      = container.getElementsByTagName("div"); container      = container[0].getElementsByTagName("ul"); container      = container[0];

var li         = container.appendChild( document.createElement("li") ); var url        = li.appendChild( document.createElement("a") ); url.innerHTML  = "switch wiki"; url.href       = "http://guildwars.wikia.com" + location.pathname; }

hookEvent( 'load', wikiswapper_init);