fix: no class list

This commit is contained in:
tresabhi committed 2025-03-31 17:39:42 -05:00
1 parent 40a81f6b1b
commit 28f365f762
1 file changed
+1 -6
+1 -6
View File
@@ -2,12 +2,7 @@
function funnify() {
document.body.querySelectorAll('*').forEach((element) => {
element.childNodes.forEach((node) => {
if (
node.nodeType !== 3 ||
!node.textContent ||
(node as HTMLElement).classList?.contains('no-funny')
)
return;
if (node.nodeType !== 3 || !node.textContent) return;
node.textContent = node.textContent
.replaceAll(/[tdkqgp]/g, 'w')