How to disable battery charging?

(apple.stackexchange.com)

If you use a small piece of tape to block the middle (signal) pin on your MagSafe charger, your Mac will not charge because it can't identify the charger.

Tape over the MagSafe

Oh, this is a nice solution. I'll give this a try. My older MacBook Pro battery is expanding like an ageing sun, which has me worried that I'll wake up to a mess one morning. It's always plugged in, so this may resolve the issue …