I very much doubt you can universally “trick” all plugins without touching at least some of some plugin code, but I think your best bet would be filters on the_permalink
and post_link
, and maybe pre_post_link
. Even if you got that working it would be pretty “heavy”. That is, a lot of processing happens before you get to interrupt things.