User:Katie Filbert (WMDE)/vector.js

mw.loader.load('http://demos.filbertkm.com/wikidata/langlinks.js');

function addEditCounter{ //        mw.util.addPortletLink("p-personal","" ,"Edit Counter","pt-mycounter","Edit Counter", "", document.getElementById('pt-logout'));

mw.util.addPortletLink(   'p-personal',    'https://toolserver.org/~tparis/pcount/index.php?&name="+wgUserName +"&lang=en&wiki=wikipedia',    'Edit Counter',    'pt-mycounter',    'Edit Counter',     null,    '#pt-logout'  ); }

jQuery( document ).ready( addEditCounter );