User:Baked0Potato/wikia.js

switch(mw.config.get('wgPageName')) {   case "Special:RecentChanges": $('div.rc-fieldset-content').prepend(           $(' Filters: | ' + 'Article Comments | ' + 'None ')       ); const $filterLinks = $('div.rc-fieldset-content-filters a'); $filterLinks.click( function {           const $this = $(this),                  filterText = $this.data('filter');            $filterLinks.css('font-weight', 'normal');            $this.css('font-weight', 'bold');            $("div.rc-conntent div table").show;            if(filterText !== '')                $("div.rc-conntent div table:not(:has(td.mw-enhanced-rc + td:contains('"+filterText+"')))").hide;            return false;        }); //default filter: none $filterLinks.filter('[data-filter=""]').eq(0).click; break; }

// some imports borrowed from Bermuda importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:SandboxLink/code.js',    ] }); importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:ContribsLink/code.js',    ] }); importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:CodeLinksDropdown.js',    ] });