Facebook comment cleaner

Cleans Facebook comments of idiotic name-only mentions

< Feedback on Facebook comment cleaner

Question/comment

§
Posted: 2015-01-13

Small optimization

Hi, you can optimize the efficiency of the script by changing line 24 from:

for (var i = 0; i < contents.length; i++) {

To:

for (var i = 0; i < contents.length && !isValid; i++) {

Or, alternatively, you could add a break after line 31.

Post reply

Sign in to post a reply.