Script Summary: Change links above images to point to the IQDB image search.
Thumbnails are submitted instead of the original image to speed things up, at the cost of not displaying the dimensions of the original submission. The original link is tacked onto the URL in a way that the image search ignores.
Fixed script to work with the 4chan update.
Removed the "XXX" bit since 4chan did away with that a year ago, fixed links using the wrong thumbnail URLs, and added a few new chanarchive links to the @include list.
Various small revisions: reduced options, changed @includes, added update checker, etc... The "XXX" bit isn't needed anymore, but I'll leave it for now.
Added ability to replace XXX post numbers with full number. Also put three options at the top of the script to make things even simpler to change.
I somehow managed to process a link multiple times, breaking it, but can't figure out how that happened. Added a check to prevent this anyway.
Thumbnails are now submitted instead of the original image.
Links are now rewritten automatically when threads are expanded instead of with every mouse click.