mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
Since we don't have icons or access to the JS that transforms hashtag icon placeholders into their proper icons and colours on embed and publish pages, we need to at least show _something_ and make sure the hashtags are not totally broken on these pages.
13 lines
480 B
JavaScript
13 lines
480 B
JavaScript
(function () {
|
|
window.onload = function () {
|
|
// Use a # for hashtags since we don't have the JS and icons needed here to render the proper icon.
|
|
let hashtags = document.querySelectorAll(
|
|
".published-page-content-body a.hashtag-cooked"
|
|
);
|
|
for (let i = 0; i < hashtags.length; i++) {
|
|
hashtags[i].querySelector(".hashtag-icon-placeholder .d-icon").remove();
|
|
hashtags[i].querySelector(".hashtag-icon-placeholder").innerText = "#";
|
|
}
|
|
};
|
|
})();
|