User:OsamaK/badjpg.js

// tagger function BadJPG { if (document.editform) { document.editform.wpTextbox1.value += "\n"; document.editform.wpSummary.value = ""; document.editform.wpWatchthis.checked = false; document.editform.submit; } else document.location = mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=" + wgPageName + "&action=edit&BadJPG=1"; } function addBadJPG{ if (wgNamespaceNumber == 6) mw.util.addPortletLink("p-cactions", "javascript:BadJPG", "", ""); if (document.location.href.indexOf("BadJPG=1") > 0) BadJPG; } addOnloadHook(addBadJPG);