Skip to content

Instantly share code, notes, and snippets.

@limitedeternity
Last active October 31, 2023 20:17
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save limitedeternity/233afef87abd3742d3b5952458c93ea6 to your computer and use it in GitHub Desktop.
Save limitedeternity/233afef87abd3742d3b5952458c93ea6 to your computer and use it in GitHub Desktop.
Delete VK audio from profile
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);
});
@capomafiosoken
Copy link

document.querySelectorAll('.ai_has_btn.audio_item');
Скрипт скроллинга к слову не рабочая.

рабочая, надо открывать в m.vk.com

@alexander-kudin
Copy link

alexander-kudin commented Dec 29, 2020

Все отлично работает. Сработает только на m.vk.com 👍

@fuale
Copy link

fuale commented Apr 19, 2022

Работает до сих пор - странно, конечно, у меня больше 1500 запросов улетело, а вк отработал и даже не заблочил

@kek-dev
Copy link

kek-dev commented Nov 14, 2022

works fine +1

@Artem45
Copy link

Artem45 commented Dec 7, 2022

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

@nikita-komissarov
Copy link

Работает в 2023, большое спасибо!
Только для m.vk.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment