mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +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() {
|
function funnify() {
|
||||||
document.body.querySelectorAll('*').forEach((element) => {
|
document.body.querySelectorAll('*').forEach((element) => {
|
||||||
element.childNodes.forEach((node) => {
|
element.childNodes.forEach((node) => {
|
||||||
if (
|
if (node.nodeType !== 3 || !node.textContent) return;
|
||||||
node.nodeType !== 3 ||
|
|
||||||
!node.textContent ||
|
|
||||||
(node as HTMLElement).classList?.contains('no-funny')
|
|
||||||
)
|
|
||||||
return;
|
|
||||||
|
|
||||||
node.textContent = node.textContent
|
node.textContent = node.textContent
|
||||||
.replaceAll(/[tdkqgp]/g, 'w')
|
.replaceAll(/[tdkqgp]/g, 'w')
|
||||||
|
|||||||
Reference in new issue
Block a user