Last active
September 6, 2022 10:53
-
-
Save xenio/ba4d0ed8bb0d49ec4d288056cafd20cb 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
/// ExampleScript.js | |
console.log("Start................."); | |
var observer = new MutationObserver(function (mutations) { | |
mutations.forEach(function (mutationRecord) { | |
//alert(mutationRecord.target.id); | |
setTimeout(() => { | |
document.querySelector("#miodiv a").click(); | |
}, 2000); | |
}); | |
}); | |
observer.observe(document.querySelector("#miodiv"), { | |
attributes: true, | |
attributeFilter: ["style"], | |
}); | |
console.log("Click..................."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment