Your annotated code is actually pretty close to the original source!
sweet!

Thanks for the reply, so we should open a thread and ask to theymos if he can add this script here in the forum.
Keep in mind that if the javascript code is added to the forum, it also needs somebody to maintain it, and you can't make your own tweaks (e.g. to the scoring algorithm)
I'm also not sure that's really the way to go versus a signature ignore boolean of some variety. There's pros and cons (dev time, upkeep, (false) positives, user control, server load, etc.) to both approaches though.