{"id":37,"date":"2016-08-27T13:23:19","date_gmt":"2016-08-27T17:23:19","guid":{"rendered":"http:\/\/developerodyssey.com\/?p=37"},"modified":"2016-08-27T13:23:19","modified_gmt":"2016-08-27T17:23:19","slug":"unsave-all-reddit-posts","status":"publish","type":"post","link":"https:\/\/developerodyssey.com\/?p=37","title":{"rendered":"Unsave All Reddit Posts"},"content":{"rendered":"<p>I had a lot of saved posts built up in my Reddit account so I thought I would do a little house cleaning. Mainly by unsaving all the saved posts. Probably best to just get rid of them all and then try to only keep a list of the stuff I actually wanted, deleting stuff as I go. I had hundreds of saved posts, and going through them manually was taking way too long. So I came up with a little GreaseMonkey script to get rid of all the saved posts.\u00a0 Here it is:<\/p>\n<pre>window.addEventListener(\"load\", function(evt) {\r\nvar btn = document.createElement('input');\r\nbtn.type='button'\r\nbtn.value= 'Unsave All'\r\n\r\nbtn.addEventListener('click',gm_UnsaveAll)\r\n\r\ndocument.body.insertBefore(btn, document.body.firstChild);\r\n});\r\n\r\nfunction gm_UnsaveAll(evt) {\r\n$('.link-unsave-button a').each(function(i,e){setTimeout(function(){e.click();},1000)});\r\n}<\/pre>\n<p>Set it up in GreaseMonkey with <span style=\"font-family: monospace;\">https:\/\/www.reddit.com\/user\/{USERNAME}\/saved<\/span> as the included page and you&#8217;re ready to go. Just navigate to that page and you should see a button at the top of the page. Don&#8217;t forget to replace {USERNAME} with your username. It only unsaves a single page at a time, but it&#8217;s better than clicking each post individually. And if you have Reddit Enhancement Suite (AKA RES) installed, then you can scroll down to load up a few pages worth of posts and unsave them all at once. This saved me quite a bit of time, and I now have a clean saved posts list, ready to be filled up again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a lot of saved posts built up in my Reddit account so I thought I would do a little house cleaning. Mainly by unsaving all the saved posts. Probably best to just get rid of them all and then try to only keep a list of the stuff I actually wanted, deleting stuff &hellip; <a href=\"https:\/\/developerodyssey.com\/?p=37\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Unsave All Reddit Posts<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/developerodyssey.com\/index.php?rest_route=\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developerodyssey.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developerodyssey.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developerodyssey.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developerodyssey.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=37"}],"version-history":[{"count":4,"href":"https:\/\/developerodyssey.com\/index.php?rest_route=\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/developerodyssey.com\/index.php?rest_route=\/wp\/v2\/posts\/37\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/developerodyssey.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developerodyssey.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developerodyssey.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}