This is a simple one: create the shortest browser script to change every appearance of force on a web page into horse. This script needs to be able to be pasted into the console and work on most modern browsers.
You must replace all occurences of the word force and conjugates of the word force (forcing, forced, reinforce). The cases must also be preserved.
You must not change any occurences which are not visible when the page is displayed in a browser. For example, meta tags or comments.
Example
This is a fOrcE log
. It makes people who touch it very forceful. Don't try forcing it.
This is a hOrsE log
. It makes people who touch it very horseful. Don't try horsing it.
Unfortunately this is a Javascript only challenge. The shortest code wins.
forc
intohors
- or it is the replacement of all the different conjugations offorce
into their horse versions. In the former case, we get things like "Reinhorsing", etc. In the latter, onlyforcing
would be an exception. OP should clarify. \$\endgroup\$ – absinthe Sep 8 '14 at 22:59.innerHTML
replace-all solutions, which I'm guessing is why you want the exceptions in the first place. \$\endgroup\$ – COTO Sep 9 '14 at 1:01