User:PrimeHunter/Search sister projects.js

/* Add a "Sister projects" sidebar link to search pages. Click it to repeat the search with sister projects added. Install with this in your Special:MyPage/common.js:

importScript('User:PrimeHunter/Search_sister_projects.js'); // Linkback: User:PrimeHunter/Search sister projects.js

// Script is specific to Special:Search if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search'){ mw.util.addPortletLink(   'p-tb',    location.href.replace( location.hash, '' ) + ( location.search ? '&' : '?' ) + 'cirrusUserTesting=recall_sidebar_results',   'Sister projects',    't-sisterprojects',    'Repeat the search with sister projects added'  ); }