User:Minesweeper.007/pfi.js

function PFIaction { if(document.getElementById('t-prefixindex')) mw.util.addPortletLink('p-cactions', document.getElementById('t-prefixindex').firstChild.href,'prefix index','ca-prefixindex'); } addOnloadHook(pagetools);