Last active
March 11, 2020 10:20
-
-
Save Rast1234/15d6517bfb929b5316e810d14a5df615 to your computer and use it in GitHub Desktop.
Removes VK stories from all friends
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
HASH = 'abcdef012345678910'; // just an example | |
ids = [].slice.call( document.querySelectorAll('.friends_user_info .friends_lists.clear_fix')).map(function(x){return x.id.substring(5)}); | |
ids.forEach(function(x){ | |
var xhttp = new XMLHttpRequest(); | |
xhttp.open("POST", "https://vk.com/al_stories.php", true); | |
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | |
xhttp.send('act=blacklist_add&hash='+HASH+'&al=1&owner_id='+x); | |
}); | |
/* | |
Get rid of annoying "stories" in vk.com. You can't hide stories block but you can "blacklist" stories from any person individually. | |
This script hides stories from all friends. | |
HOWTO: | |
1) in browser, open 'network' tab in developer tools | |
2) block someone's story manually (press '...' while viewing a story) | |
3) find this request and get 'hash' value from its data | |
4) open friends list and scroll it to the end so all friends are displayed on one page | |
5) open console end execute this script (setting HASH to your actual value) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment