Created
January 5, 2015 09:46
-
-
Save poonl1/05e6348939534cc3a23c to your computer and use it in GitHub Desktop.
Gourdify
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
var ps = document.querySelectorAll("p"); | |
[].slice.call(ps).forEach(function(p){ | |
p.innerHTML = p.innerHTML.replace(/g\w+/gi, "gourd").replace(/h\w+/gi, "harfitt").replace(/e\w+/gi, "eduardo").replace(/y\w+/gi, "yeya").replace(/s\w+/gi, "scrub").replace(/w\w+/gi, "woo").replace(/p\w+/gi, "park").replace(/v\w+/gi, "vroom").replace(/j\w+/gi, "jaewoo").replace(/l\w+/gi, "lorry") | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment