Created
April 21, 2021 14:32
-
-
Save Schniz/b61b31dc81dfcd60113959a327c69669 to your computer and use it in GitHub Desktop.
Censor carbon.now.sh exported SVG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function textNodesUnder(el){ | |
var n, a=[], walk=document.createTreeWalker(el,NodeFilter.SHOW_TEXT,null,false); | |
while(n=walk.nextNode()) a.push(n); | |
return a; | |
} | |
for (let node of textNodesUnder(document.documentElement)) { | |
node.nodeValue = node.nodeValue.replace(/[^\s]/g, '█'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment