Created
December 3, 2015 15:21
-
-
Save tapvt/88ce50db3d0e22668bf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Paste this into your Chrome Console | |
var check = function () { | |
var content = document.body.textContent || document.body.innerText; | |
var open = content.indexOf('Kitchen’s Open') !== -1; | |
if (open) { | |
alert ('Kitchen is Open!') | |
} else { | |
console.log('still waiting....'); | |
setTimeout(check, 10000); | |
} | |
}; | |
check(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment