Last active
May 31, 2023 09:46
-
-
Save Hashbrown777/b95d706373597093fe9c820b096420b2 to your computer and use it in GitHub Desktop.
Unfollow all your questions in a Stack Exchange list
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
//go to one of your lists, eg https://superuser.com/users/saves/241800 | |
$('.s-block-link.js-unsave').click() | |
//NO NEED TO USE THIS | |
(async (links) => { | |
const request = { | |
body : 'fkey=' + localStorage['se:fkey'].replace(/,.*$/, ''), | |
method : 'POST', | |
// credentials : 'include', | |
headers : { | |
'Accept' : 'application/json, text/javascript, */*; q=0.01', | |
'Content-Type' : 'application/x-www-form-urlencoded; charset=UTF-8' | |
} | |
}; | |
for (const link of links) | |
await fetch(`/posts/${$(link).data('post-id')}/save?isUndo=true`, request); | |
location.reload(); | |
})($('.js-unsave').get()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had hundreds, and I just don't..use it