content: When you feel like jerkin it do push-ups.  Or just ignore it until it goes away. It will go away eventually. As your suggestion, habit is a powerful thing, and perhaps the only way to ever actually improve. Willpower alone never works. Getting rid of any bad habit is saying no to a single urge lots of times. Another tool that helps is avoiding putting yourself in that situation in any way possible. Block porn sites on your computer or phone. Sure you can always unblock them, but simply putting as many inconveniences and roadblocks in the way as possible helps a lot.