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	const wpUrl = 'https://en.wikipedia.org/w/load.php?modules=skins.minerva.icons.wikimedia&variant=progressive&format=rasterized&skin=minerva';	$('.wiki-page-header__title-wrapper').after(`                </li>  <a href="${addUrlParam('action=edit')}"> <img width="24px" src="${wpUrl}&image=edit&version=hxcbj"> </a> </li>  <a href="/wiki/Special:Whatlinkshere/${location.pathname.replace(/.+\/wiki\//, '')}"> <img width="24px" src="${wpUrl}&image=articleRedirect&version=1wqkj"> </a> </li>  <a href="/wiki/Special:Log/${location.pathname.replace(/.+\/wiki\//, '')}"> <img width="24px" src="${wpUrl}&image=listBullet&version=1born"> </a> </li>  <a href="/wiki/Special:Contribs/${location.pathname.replace(/.+User:/, '').replace('/', '?')}"> <img width="24px" src="${wpUrl}&image=userContributions&version=80g1m"> </a> </li> </ul> `);	// Show TOC	$('#toc').removeClass('ready');	// Collapse sections	$('.chevron-wrapper').click;	// Add history link	$('main').after(` <a href="${addUrlParam('action=history')}">View page history</a> `); });