User:OsamaK/commonsok.js

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