function mb_age_warning_confirm() { localStorage.mb_age_warning_verified = "1"; document.getElementById("mb_age_warning").remove(); } /* edit below if you want to change the 18+ text */ function mb_age_warning() { $("body").append("

You must be 18 years of age or older to continue.
I am 18 or older, continue
Leave
") } $( document ).ready(function() { if(localStorage.mb_age_warning_verified === undefined) { mb_age_warning(); } });