For old macbook users (with magsafe connectors), covering the middle pin in connector stops charging the battery while running the laptop on main power supply.
It is not a good idea to charge a lithium battery to 100% all the time. The source article also specifically mentions it, giving reference to Battery University.