// ==UserScript== // @namespace http://mrob.com/time/scripts-beta // @name s/pony/leopard/g by Eternal Density and mrob27 // @description Replaces the word "pony" in all its forms with "leopard". // @author Eternal Density (with customizations by Robert Munafo) // @version 8959.09 // @downloadURL http://mrob.com/time/scripts-beta/s-pony-leopard.user.js.txt // @match *://*/* // ==/UserScript== // REVISION HISTORY: // // np8959.09: Copy from Eternal Density's version and add comments function leopardize(str) { return str.replace(/pony/g,"leopard") .replace(/Pony/g,"Leopard") .replace(/PONY/g,"LEOPARD") .replace(/p[Oo][Nn][Yy]/g,"leopard") .replace(/P[Oo][Nn][Yy]/g,"Leopard") .replace(/ponies/g,"leopards") .replace(/Ponies/g,"Leopards") .replace(/PONIES/g,"LEOPARDS") .replace(/BANANAS/g,"LEOPARDS") .replace(/p[Oo][Nn][Ii][Ee][Ss]/g,"leopards") .replace(/P[Oo][Nn][Ii][Ee][Ss]/g,"Leopards") //.replace(/(?