MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 301: Line 301:
     if (window.location.pathname == '/w/Special:RecentChanges') $('#mw-site-navigation .sidebar-chunk a[href="/w/Special:RecentChanges"]').addClass('mw-has-selflink');
     if (window.location.pathname == '/w/Special:RecentChanges') $('#mw-site-navigation .sidebar-chunk a[href="/w/Special:RecentChanges"]').addClass('mw-has-selflink');
     $('#p-banner').html("<span><span class='main-accent'>El</span>wiki</span>");
     $('#p-banner').html("<span><span class='main-accent'>El</span>wiki</span>");
     $('table[cellpadding="5"][border="1"][style] tr:not(.dungeon-page-fields tr), .segment-header:not(.job-change-collapsible .segment-header), .segment .mw-collapsible-text').each(function () {
     $('.region-map img[alt="About this image"]').attr('src', 'https://elwiki.net/wiki/images/1/1f/UI_-_Help.png').show();
    $('table[cellpadding="5"][border="1"][style] tr[style*="rgb(68, 68, 68)"] th').css('border-color', 'black')
 
});
 
docReady(function () {
 
    $('table[cellpadding="5"][border="1"][style] tr:not(.dungeon-page-fields tr), .segment-header:not(.job-change-collapsible .segment-header), .segment .mw-collapsible-text').each(function () {
         if ($(this).hasClass('mw-collapsible-text')) {
         if ($(this).hasClass('mw-collapsible-text')) {
             var rgb = $(this).parent().parent().find('.segment-header:eq(0)').css('backgroundColor');
             var rgb = $(this).parent().parent().find('.segment-header:eq(0)').css('backgroundColor');
Line 315: Line 322:
         }
         }
     });
     });
    $('.region-map img[alt="About this image"]').attr('src', 'https://elwiki.net/wiki/images/1/1f/UI_-_Help.png').show();
    $('table[cellpadding="5"][border="1"][style] tr[style*="rgb(68, 68, 68)"] th').css('border-color', 'black')
});
docReady(function () {


     $('.related-skills td[width="150"]').each(function () {
     $('.related-skills td[width="150"]').each(function () {