Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new WebKitMutationObserver(function(mutations) {
- mutations.forEach(function(mutation) {
- if (!mutation.addedNodes) return;
- [].map.call(mutation.addedNodes, function xPlay(el) {
- if (el.nodeType != 1) return;
- var play = geByClass1('audio-msg-track--btn', el);
- if(!play || play.played) return;
- play.played = 1;
- play.click();
- console.log('play', play, el);
- });
- });
- }).observe(document.body, {
- childList: true,
- subtree: true
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement