Last active
May 13, 2017 05:23
-
-
Save crakaC/052afd00dfb19046158772b1ca18e4b2 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
var observer = new MutationObserver((mutations) => { | |
mutations.forEach((m) => { | |
m.addedNodes.forEach((node) => { | |
if(node.className != "status") return; | |
var nicoruButton = node.querySelector("[aria-label='ニコる']"); | |
if(nicoruButton.children[0].className.includes("inactive")){ | |
// nicoruButton.click(); | |
} | |
}); | |
}) | |
}); | |
var target = document.querySelectorAll(".status-list")[1]; | |
observer.observe(target, {childList: true}); | |
setTimeout(()=>observer.disconnect(), 10000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment