quotelinkify quotes of postIDs

justrunmyscripts
2025-04-28T19:57:55Z

run this script before 4chan-x to allow quotes of postIDs that "look like quotelinks" to become real quotelinks, set 4chan-x to load on document-end

# Why?

With this script, whenever someone says `>12345678` in a post, that becomes a proper quotelink (hoverable & expandable etc...), before this would only work if they were formatted as `>>12345678`.

# How?

This script is meant to run before the 4chan-x script, it was easier to make this separate script than to modify the actual 4chan-x script.

In your script manager, modify the 4chan-x script to run at `document-end` instead of the default `document-start`. It's not ideal since it will slow the execution of 4chan-x a bit, but I think it's worth it for this feature, since 4chan is so aggressive in spam detection when linking to multiple posts in a single post, it means a lot of anons instinctively format their quotelinks with a single quote instead, which 4chan is OK with and doesn't consider spam... oh well.

# note

- uses the replaceWith() function, which won't work in IE 11