Forked from ShockwaveNN/feedly_export_saved_for_later
Last active
May 24, 2017 21:37
-
-
Save limamedeiros/900cdb1d8ef7b722b801f737d3ae5e85 to your computer and use it in GitHub Desktop.
Working script for latest feedly redising. Drop support of `time` field, no longer avaible (or I din't found it)
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
function loadJQuery(){ | |
script = document.createElement('script'); | |
script.setAttribute('src', '//code.jquery.com/jquery-2.1.3.js'); | |
script.setAttribute('type', 'text/javascript'); | |
script.onload = loadSaveAs; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
} | |
function loadSaveAs(){ | |
saveAsScript = document.createElement('script'); | |
saveAsScript.setAttribute('src', 'https://rawgit.com/eligrey/FileSaver.js/master/FileSaver.js'); | |
saveAsScript.setAttribute('type', 'text/javascript'); | |
saveAsScript.onload = saveToFile; | |
document.getElementsByTagName('head')[0].appendChild(saveAsScript); | |
} | |
function saveToFile() { | |
// Loop through the DOM, grabbing the information from each bookmark | |
map = jQuery(".entry.quicklisted").map(function(i, el) { | |
var $el = jQuery(el); | |
var regex = /published:(.*)\ --/i; | |
return "<DT><A HREF='" + $el.attr("data-alternate-link") + "'>" + $el.attr("data-title") + "</A>" | |
}).get(); // Convert jQuery object into an array | |
// Convert to a nicely indented JSON string | |
//json = JSON.stringify(map, undefined, 2); | |
var blob = new Blob([map], {type: "text/plain;charset=utf-8"}); | |
saveAs(blob, "FeedlySavedForLater" + Date.now().toString() + ".html"); | |
} | |
loadJQuery() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment