I understand how you might extend your 30 day stamp. My point is that they won't let you on the plane in the first place
@Co***
! Get a tourist visa, as
@Tod ********
says, or a ticket out of Thailand before 30 days is up on your stamp. If you don't get on the plane you can't extend anything, can you? Standing in front of check-in staff who've already decided you're not boarding telling them you'll do a border bounce won't be a great start to your trip.