User:ImmortalHero101/common.js

var evolutionTable = $("#Evolution").parent.next("table") evolutionTable.addClass("evolution-table"); evolutionTable.removeClass("article-table") var highlightedEvolution = $(".evolution-table td:contains('" + $('.page-header__title').text + "')"); highlightedEvolution.addClass("highlight"); highlightedEvolution.css("font-weight", "bold"); $(".highlight").prev.css({"background": "linear-gradient(to right, #ffeed670 0%,#ffa13d70 100%)", "font-family": "Baloo Paaji"}); $(".highlight").next.css({"background": "linear-gradient(to right, #ffa13d70 0%,#ffeed670 100%)", "font-family": "Baloo Paaji"}); for (count = 0; count < 4; count = count + 2) { var cellObj = $(".evolution-table td:nth-child(" + count + ")"); var cellTxt = cellObj.text; if (cellTxt.length > 0 && cellObj.find("img").length === 0) { var cellArr = cellTxt.split(" "); cellArr[cellArr.length - 1].replace(/▶|▶/g," "); $(".evolution-table td:nth-child("+ count +")").html(cellArr.join(" ")); } }