User:Benipal hardarshan/common.js

$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).done( function { var body = document.getElementById("mw-content-text").innerText;  mw.util.addPortletLink( 'p-personal', 'http://aksharamukha-plugin.appspot.com/api/public?target=Gurmukhi&text=' + body, 'pa2pnb', 'pt-pa2pnb', 'Change script from Gurmukhi to Shahmukhi', null, '#pt-preferences' ); });