User:Sreejithk2000/Move2Commons.js

function OpenToolServerPage { var toolServerURL = "https://tools.wmflabs.org/commonshelper/?interface=en&lang=en"; window.open(toolServerURL + "&image=" + escape(wgTitle)); }

addOnloadHook(function { if (wgCanonicalNamespace == "File")    mw.util.addPortletLink( 'p-cactions', "javascript:OpenToolServerPage", "2 Commons", "tw-m2c", "Move 2 Commons", ""); });