Skip to content

Instantly share code, notes, and snippets.

@poonl1
Created January 5, 2015 09:46
Show Gist options
  • Save poonl1/05e6348939534cc3a23c to your computer and use it in GitHub Desktop.
Save poonl1/05e6348939534cc3a23c to your computer and use it in GitHub Desktop.
Gourdify
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