Skip to content

Instantly share code, notes, and snippets.

@xenio
Last active September 6, 2022 10:53
Show Gist options
  • Save xenio/ba4d0ed8bb0d49ec4d288056cafd20cb to your computer and use it in GitHub Desktop.
Save xenio/ba4d0ed8bb0d49ec4d288056cafd20cb to your computer and use it in GitHub Desktop.
/// 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