MediaWiki:Common.js: Difference between revisions

From Auranogi
No edit summary
No edit summary
Line 7: Line 7:


importScript('MediaWiki:DynamicNav.js');
importScript('MediaWiki:DynamicNav.js');
importScript('CustomJs:CategoryTreeRemove.js');
 
 
document.querySelector('.CategoryTreeSection [href="/view/Category:Dungeon_Variants"').parentElement.parentElement.remove();

Revision as of 07:42, 17 April 2023

/* Any JavaScript here will be loaded for all users on every page load. */
function importPage(name, type) {
	return mw.loader.load( '/index.php?title=' + name + '&action=raw&ctype=' + type, type );
}

function importScript(name) { return importPage(name, 'text/javascript'); }

importScript('MediaWiki:DynamicNav.js');


document.querySelector('.CategoryTreeSection [href="/view/Category:Dungeon_Variants"').parentElement.parentElement.remove();