You need to get a life.
Chronic masturbators tend to do so because they have the time to do so. Go outside. Get in public. Unless you have an incredibly high tolerance for embarrassment - which I doubt given you're anon - you're not going to jack of in public, and you mind will be on other things anyway. Just don't let yourself get stuck in a routine of getting home, then sitting at your desk all night before going to bed, on loop. Especially if you're feeling isolated/lonely, you're going to do it just to make yourself feel better. Find another release. Get out and enjoy yourself.