MediaWiki:Gadget-Image Control buttons.js

if (wgCanonicalNamespace == "File" && document.URL.indexOf("?action=delete") == -1){ var escapedPageName = wgPageName; while (escapedPageName.indexOf("'") != -1){ escapedPageName = escapedPageName.replace("'", "%27"); } $('#WikiaPageHeader').append("DeleteRename"); }