On LPs, this snippet will do the trick:
<img src="" style="display:none;" onerror="this.outerHTML=new Date().getFullYear();">
Note: the above is ridiculously far from best practices for authoring JS on the browser side. It's a pretty cringey hack. BUT if you're completely unfamiliar with JS and the DOM, it lets you insert a single HTML element which replaces its own contents at runtime. No prettier ways to accomplish that, AFAIK!
For Velocity, I've posted the code a few times before, if you search.
... View more