User:BoatsAreRockable/global.js

importScriptPage('PurgeButton/code.js', 'dev'); /*Adds refresh button*/ $(function{ var tpbutton = document.createElement("a"); tpbutton.setAttribute("accesskey", "t"); tpbutton.setAttribute("href", wgServer + "/wiki/" + wgPageName + "?action=purge"); tpbutton.setAttribute("class", "wikia-button secondary talk"); tpbutton.setAttribute("rel", "nofollow"); tpbutton.setAttribute("data-id", "comment"); tpbutton.innerHTML = "PRG"; $(tpbutton).insertAfter(".comments"); });