this is a pet hate of mine too. There has to be a better way.
Having a tri then a cat means plenty of deck to scrub.
Apologies if if posted this here before, it's being floating in my head for a while.
Humour me for a minute........
Small solar panel hooked up to a battery. Timer circuit that discharges a pulse possibly through a capacitor, through a loop of uncoated stainless fishing trace which is clothes pegged onto the staunchion.
Bird sits on handrails, next pulse goes through, bird flies away.
no wait, edit that, bird sits on handrails, next pulse come through, bird ****s itself, then flies away.
back to square 1.
No, i'm sure a few volts up the *** would be a deterrent, that or you come down the boat and see a line of smoking, bald, charcoal colored comorants looking back.