Skip to content

Instantly share code, notes, and snippets.

@Hashbrown777
Last active May 31, 2023 09:46
Show Gist options
  • Save Hashbrown777/b95d706373597093fe9c820b096420b2 to your computer and use it in GitHub Desktop.
Save Hashbrown777/b95d706373597093fe9c820b096420b2 to your computer and use it in GitHub Desktop.
Unfollow all your questions in a Stack Exchange list
//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())
@Hashbrown777
Copy link
Author

I had hundreds, and I just don't..use it

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