User:OsamaK/imagetalkcommons.js

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