The solution is to support a custom attribute, such as data-fancybox-href, as Fancybox 2 does. With those you leave the href as it is, so there is no loss of functionality. It can be almost added by changing line 108 of
href = selectedOpts.orig.attr('data-fancybox-href') || selectedOpts.href || (obj.nodeName ? $(obj).attr('href') : obj.href) || null;
By default that file isn't used, so to test it you need to remove
.pack from line 424 of
easy-fancybox-class.php. In my tests the above patch worked otherwise, but .fancybox-wrap was stuck with
width: 20px for some reason, so unfortunately it's not usable yet.