2024-05-03 12:49:50 +02:00
|
|
|
window.addEventListener("load", () => {
|
|
|
|
Array.from(document.getElementsByClassName("at")).forEach((elem) => {
|
|
|
|
elem.textContent = "@";
|
2024-05-29 20:51:04 +02:00
|
|
|
|
|
|
|
// Change link
|
|
|
|
const a = elem.parentElement;
|
|
|
|
const href = a.getAttribute("href");
|
|
|
|
elem.parentElement.setAttribute(
|
|
|
|
"href",
|
|
|
|
href.replace(" at ", elem.textContent)
|
|
|
|
);
|
2024-05-03 12:49:50 +02:00
|
|
|
});
|
|
|
|
});
|