Last active
October 31, 2023 20:17
-
-
Save limitedeternity/233afef87abd3742d3b5952458c93ea6 to your computer and use it in GitHub Desktop.
Delete VK audio from profile
This file contains hidden or 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
new Promise(resolve => { | |
var offset = -100; | |
let pageScroll = () => { | |
window.scrollBy(0, 50); | |
if (window.pageYOffset === offset) { | |
return resolve(true); | |
} | |
offset = window.pageYOffset; | |
setTimeout(pageScroll, 50); | |
}; | |
pageScroll(); | |
}).then(() => { | |
let n = document.querySelectorAll('.audio_item.ai_has_btn.audio_item'); | |
n.forEach(e => { | |
let a = e.getAttribute('data-id'); | |
window.audioplayer.del(a, event); | |
}); | |
location.reload(true); | |
}); |
Все отлично работает. Сработает только на m.vk.com 👍
Работает до сих пор - странно, конечно, у меня больше 1500 запросов улетело, а вк отработал и даже не заблочил
works fine +1
Not working for me.
Return this:
Uncaught TypeError: Cannot read properties of null (reading 'click')
at :9:54
(anonymous) @ VM2296:9
setInterval (async)
deleteAllMusic @ VM2296:8
(anonymous) @ VM2296:19
and red round icon with numbers whoe's increase from 0 to 1 etc...
if I try enter this script from m.vk.com page, then opens tab and ask me redirect to vk.com
Работает в 2023, большое спасибо!
Только для m.vk.com
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
рабочая, надо открывать в m.vk.com