Fix misbehaving ad

For whatever reason, the ad code is removing any text that says
"Download", which is making searches for Porygon (which has "Download"
as an ability) stop working. This is a simple workaround for that
issue.
This commit is contained in:
Guangcong Luo 2026-03-15 06:22:40 +00:00
parent 12f3840ede
commit 8c8b11751c

View File

@ -154,6 +154,10 @@
i++;
}
// misbehaving ad
buf = buf.replace(/>Download</g, '>Down<!-- -->load<');
if (!this.renderedIndex) {
this.el.innerHTML = '<ul class="utilichart" style="height:' + (resultSet.length * 33) + 'px">' + buf + (!this.renderingDone ? '<li class="result more"><p><button class="button big">More</button></p></li>' : '') + '</ul>';
this.moreVisible = true;