mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
fix: no class list
This commit is contained in:
1 parent
40a81f6b1b
commit
28f365f762
1 file changed
+1
-6
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user