13 lines
348 B
JavaScript
13 lines
348 B
JavaScript
window.addEventListener("load", () => {
|
|
Array.from(document.getElementsByClassName("at")).forEach((elem) => {
|
|
elem.textContent = "@";
|
|
|
|
// Change link
|
|
const a = elem.parentElement;
|
|
const href = a.getAttribute("href");
|
|
elem.parentElement.setAttribute(
|
|
"href",
|
|
href.replace(" at ", elem.textContent)
|
|
);
|
|
});
|
|
});
|