User:RainbowJester/vector.js

function createTab { addPortletLink( 'p-namespaces', wgArticlePath.replace( '$1', 'Speculation:' + wgRelevantPageName ), 'Speculation', 'ca-nstab-speculation'); } addOnloadHook( createTab );