25,204
edits
No edit summary |
No edit summary |
||
(29 intermediate revisions by 2 users not shown) | |||
Line 69: | Line 69: | ||
var rows = $('[class^="colortable-"] td b:contains("' + rowContent + '")'); | var rows = $('[class^="colortable-"] td b:contains("' + rowContent + '")'); | ||
rows.each(function () { | rows.each(function () { | ||
const textContent = $(this).parents('td')[0].textContent.trim(); | |||
if (textContent == rowContent) $(this).parent().addClass('tone-4'); | |||
}) | }) | ||
}) | }) | ||
Line 187: | Line 188: | ||
if (getCookie('elwiki-dark-mode') == 'true') $('body').addClass('dark-mode'); | if (getCookie('elwiki-dark-mode') == 'true') $('body').addClass('dark-mode'); | ||
if (getCookie('not-new') == null) $('#dark-mode-switch').addClass('new'); | if (getCookie('not-new') == null) $('#dark-mode-switch').addClass('new'); | ||
// This is pretty cringe, tabs don't load sometimes | |||
if (!$('.tabber-new.loaded').length) mw.loader.load('https://elwiki.net/wiki/index.php?title=MediaWiki:Gadget-Tabs.js&action=raw&ctype=text/javascript') | |||
} | } | ||
Line 496: | Line 500: | ||
} | } | ||
} | } | ||
//Fix height issue with ads | |||
var HeightFix = $("#mw-content-block"); | |||
//$("#mw-related-navigation").css("min-height", HeightFix.height()); | |||
$("#mw-related-navigation").attr("style", "max-height: " + HeightFix.height() + "px !important"); | |||
//$("#mw-related-navigation").attr("style", "height: 100% !important"); | |||
//Get Ad Dart Number | //Get Ad Dart Number |