User:Asartea/TopicSubscriptionsTab.js

// Loosely based on and inspired by User:Novem Linguae/Scripts/TopicSubscriptionsTab.js // Adds a tab to switch between Special:Watchlist <> Special:TopicSubscriptionsTab //

/* - function addTabLink(pagename) { $('#ca-nstab-special').after(`									 ${pagename} 						`); } $(async function {	let title = mw.config.get('wgCanonicalSpecialPageName'); // returns the name of the current Special page (if any) minus Special:	if (title === 'Watchlist') {		addTabLink('TopicSubscriptions');	} else if (title === 'TopicSubscriptions') {		addTabLink('Watchlist');	} });

//