Created
October 20, 2021 21:24
-
-
Save dwisiswant0/486441ff4be4d1fee00fa5e496253987 to your computer and use it in GitHub Desktop.
postMessage detector
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
if (/((?:\.addEventListener|window\)\.on)\("message|\.postMessage\()/g.test(document.all[0].outerHTML)) console.log("voilà"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment