User:Nixinova/fdmobileplus.js

/**	Reimplementing back the old Gamepedia Mobile skin with modifications

function addUrlParam(txt) { return location.pathname + '?' + txt + location.search.replace('?', '&'); }

(function {	if (!$('body').attr('class').includes('skin-fandommobile')) return;	// Load CSS	$('head').append('')	// Add top banner	$('.wiki-page-header__title-wrapper').after(`   ⭐   🌟   ⏱️   ✏️</a> </li>  <a href="/wiki/Special:Whatlinkshere/${location.pathname.replace(/\/wiki\//, '')}">🔗</a> </li>  <a href="/wiki/Special:Log/${location.pathname.replace(/\/wiki\//, '')}">📚</a> </li>  <a href="/wiki/Special:Contribs/${location.pathname.replace('User:', '').replace('/', '?')}">👨</a> </li> </ul> `);	// Show TOC	setInterval( => {$('#toc').removeClass('closed');}, 1000);	// Collapse msgboxes	$('#msgbox-text').attr('onclick', '$(this).toggleClass("msgbox-active")');	// Collapse sections	$('.chevron-wrapper').click;	// Add history link	$('main').after(` <a href="${addUrlParam('action=history')}">View page history</a> `); });