The last part of my idea, I figured, was essential to its success--if it wasn't the consumer's choice that caused already-affiliated links to be repurposed, it might break those "common carrier" rules that allow a lot of more questionable forums to exist (would an ISP be allowed to embedd an ad-blocker in their traffic proxies without then doing "decency filtering" censorship?). Additionally, users might not like the idea of their own links being hijacked in this way, filtering the scripts out with adblockers ;)
True, I agree it'd be best to be completely upfront about it with the users, and possibly give them a way to opt out of it.
This is called "link hijacking" or another variant is "cookie stuffing". Generally looked at as unethical and dishonest. Though it is done quite frequently and very successfully by some people out there.
Could quite easily be done just as a small javascript include and could work pretty well provided they get enough people posting links to products/websites with affiliate programs.