-
-
Save techsin/962dd600da24ac080e14 to your computer and use it in GitHub Desktop.
get
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
(function(){function h(a,e){var b=a.data;b.children.forEach(function(a){d=a.data;c.push({title:d.title||d.link_title,url:(d.url||d.link_url)+(-1<d.name.indexOf("t1")&&d.id),name:d.name,subreddit:d.subreddit,context:"http://www.reddit.com/"+(d.link_id&&d.link_id.match(/t._([^&]*)/)[1]||d.id)})});(b=b.after)?f(b):(console.log(c),console.log("you can copy/paste json object from console.. using chrome copy(). First right click object > store as global ..then copy(temp1).. temp1 is usually the name given to global var"), | |
confirm("Do you want to Download it? ...alternatively check console.")&&k(c))}function f(a){var e=g;a&&(console.log("got after",a),e=g+"&after="+a);setTimeout(function(){$.getJSON(e).done(function(a){console.log("new data!");h(a,c)})},200)}function k(a){a=JSON.stringify(a,null,2);a=new Blob([a],{type:"text/plain;charset=utf-8;"});a=URL.createObjectURL(a);$("<a>").attr({href:a,download:"redditSaveds"})[0].click()}var c=[],g="http://www.reddit.com/user/"+window.location.href.match(/user\/([^/]*)/)[1]+ | |
"/saved.json?limit=100";(function(){if(!jQuery){var a=void 0,a=document.createElement("script");a.type="text/javascript";a.src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";document.getElementsByTagName("head")[0].appendChild(a)}})();f()})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment