Last active
December 7, 2019 14:40
-
-
Save mir4a/23269f4b4fc9e452f120 to your computer and use it in GitHub Desktop.
Quickly remove all friend from VK
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
// 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); |
Hello, update this script to vk.com 2019: https://gist.github.com/adelmodias/7fe50b4fee7fefbc80fc1d656d39cae1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well, I don't get how to use it. Can you please chew it for me?