User:Tomayac/codetalks.js

var walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT) while (walker.nextNode) { walker.currentNode.textContent = walker.currentNode.textContent.replace(/\b(sweet|bad|smart|dumb)[-\s](ass)\s(\w+)\b/gi, '$1 $2-$3') }