User:Weberma/userscript.js

function addArticle { var location = document.URL; window.location.href = 'http://pediapress.com//api/add-article/?return=1&url=' + location; } function addPediapressLinks { addPortletLink ('p-personal', 'javascript:addArticle', 'add article'); addPortletLink ('p-personal', 'http://pediapress.com/collection', 'my collection'); } $(addPediapressLinks);