Skip to content

Instantly share code, notes, and snippets.

@mir4a
Last active December 7, 2019 14:40
Show Gist options
  • Save mir4a/23269f4b4fc9e452f120 to your computer and use it in GitHub Desktop.
Save mir4a/23269f4b4fc9e452f120 to your computer and use it in GitHub Desktop.
Quickly remove all friend from VK
// Run from console on developers tools (chrome dev tools)
// Go to friends page from your profile and open console F12 or alt+cmd+I
// Get all links from action section, this will fetch links for remove from friends and other too.
// FIXME: add filter to show only remove from friends links
var l = document.querySelectorAll('.friends_act');
// Function link takes list of links (dom elements) as argument and iterate through each of them and set them style properties
// in my case position: fixed; top: 20px; right: 40px;
// This fill positioned all links in one place of the screen and you can easily click on it multiple times.
function links(list) {
for (var i = 0; i<list.length; i++) {
var o = list[i];
o.style.position = 'fixed';
o.style.top = '20px';
o.style.right = '40px';
}
}
// Call function with variable l which is list of action links.
links(l);
@CauseloveP
Copy link

Well, I don't get how to use it. Can you please chew it for me?

Copy link

ghost commented Nov 16, 2019

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