User:Kvng/mainlinks.js

/* Adds a toolbox link to show mainspace links to the given page. */

$( document ).ready( function { mw.util.addPortletLink( 'p-tb', mw.util.getUrl( 'Special:WhatLinksHere/' ) + mw.config.get( 'wgPageName' ) + '?hidetrans=0&hideredirs=0&namespace=0', 'Mainspace links', 't-whatpageslink', 'Hide transclusions and redirects', null, '#t-recentchangeslinked' ); });