grubeninspekteur / BetterRBTV

Web extension for YouTube Live chats.
MIT License
21 stars 6 forks source link

Multiple keyword replacement fails #39

Open grubeninspekteur opened 8 years ago

grubeninspekteur commented 8 years ago

The new code for keyword replacement replaces only the first keyword, so copy & paste would not work. Use /g for Regex pattern, repeat exec(), reset last_index to 0 afterwards; remember to take new index sizes into account when replacing further back.