User:Xeworlebi/replace.js

var replacements = [ ["Series \n#", "№"], ["Season \n#", "#"], ["Series \nepisode", "№"], ["Season \nepisode", "#"], ["No. in \nseries", "№"], ["No. in \nseason", "#"], ["No. by \nseries", "№"], ["No. by \nseason", "#"], ["Seriesno.", "№"], ["Seasonno.", "#"], ["Story No.", "№"], ["Episode", "#"] ];

function runReplacement { $(".wikitable th").each(function {   var $this = $(this);    var ih = $this.html;    $.each(replacements, function(index, value) { ih = ih.replace(value[0], value[1]); });   $this.html(ih);  }); }

$(runReplacement);