Good news! It costs $2.
https://www.amazon.com/Ives-Schlage-70A15-Hinge-Door/dp/B009E1VZUA/ref=sxin_14_ac_d_mf_br
Basically, pop out a hinge pin and then reinsert the hinge pin through the door stopper. Adjust the depth of stop by screwing/unscrewing the movable bumper and this can be done while it's installed. Takes like 40 seconds to install unless your hinges are crooked, in which case it'll take like 90 seconds to install.
Don't set it too precisely, there's always a bit of a flex when it hits the stop and it'll go a bit further than the stop is set for before springing back.
Install a hinge pin door stop and you'll never have to worry about it
Put it in the to-do list! That would be awful to have to replace the glass. https://www.amazon.com/Ives-Schlage-70A15-Hinge-Door/dp/B009E1VZUA
One of these in the door hinge should do the trick. Ives by Schlage 70A15 Hinge Pin Door Stop