Created
September 29, 2018 06:04
-
-
Save ndesmic/991990f86155e5d1ab9d5c02f8f9cb29 to your computer and use it in GitHub Desktop.
Debug Scripts
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
function breakOn(selector){ //breaks on selector | |
var o = new MutationObserver(() => { | |
console.log("hello!"); | |
debugger; | |
}); | |
o.observe(document.querySelector(selector), { | |
childList: true | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment