Hello,
Well, I did some research, because I was not very sure. "Just for the of it" has several meanings. Indeed, there is "Juste pour rire", but it means also "pour rien", "comme ça", "pour le plaisir".
This expression means in broad terms that you're doing something for no reason at all.