Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save developer-rakeshpaul/cb5a99fa3ab134c43b38 to your computer and use it in GitHub Desktop.
Save developer-rakeshpaul/cb5a99fa3ab134c43b38 to your computer and use it in GitHub Desktop.

Revisions

  1. developer-rakeshpaul revised this gist Feb 2, 2016. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion feedly_export_saved_for_later
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,6 @@
    // {
    // title: "Title",
    // url: "www.example.com/title",
    // time: "Sunday "
    // }
    // ]
    //
  2. developer-rakeshpaul revised this gist Feb 2, 2016. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions feedly_export_saved_for_later
    Original file line number Diff line number Diff line change
    @@ -21,8 +21,8 @@
    // 5) Inside the "Inspector" tool, click the "Console" tab.
    // 6) Paste the script below into the console
    // 7) Type copy(json) into the console
    //
    // Once you have followed the steps above, your list should be saved to your
    //
    // Once you have followed the steps above, your list should be saved to your
    // clipboard and can be accesed by pressing "cmd + v" or "ctrl + v" to paste
    // the file somewhere.
    //
    @@ -31,7 +31,7 @@
    // Feedly doesn't use jQuery so firstly inject it into the page
    if(!(window.jQuery)) {
    script = document.createElement('script');
    script.setAttribute('src', 'http://code.jquery.com/jquery-latest.min.js');
    script.setAttribute('src', 'https://code.jquery.com/jquery-latest.min.js');
    script.setAttribute('type', 'text/javascript');
    script.onload = copyToClipboard;
    document.getElementsByTagName('head')[0].appendChild(script);
    @@ -42,16 +42,16 @@ if(!(window.jQuery)) {
    json = ""
    function copyToClipboard() {
    // Loop through the DOM, grabbing the information from each bookmark
    map = jQuery("#section0_column0 div.u0Entry.quicklisted").map(function(i, el) {
    map = jQuery("#timeline > div:odd > div").map(function(i, el) {
    var $el = jQuery(el);
    var regex = /published:(.*)\ --/i;
    return {
    title: $el.data("title"),
    url: $el.data("alternate-link"),
    time: regex.exec($el.find("div.lastModified span").attr("title"))[1]
    };
    }).get(); // Convert jQuery object into an array

    // Convert to a nicely indented JSON string
    json = JSON.stringify(map, undefined, 2)
    }
    console.log(json)
    }
  3. @bradcrawford bradcrawford renamed this gist Nov 3, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @bradcrawford bradcrawford created this gist Nov 3, 2013.
    57 changes: 57 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    // Simple script that exports a users "Saved For Later" list out of Feedly
    // as a JSON string.
    //
    // This was intended for use in the Google Chrome's "Inspector" tool so your
    // mileage may vary if used in other contexts.
    //
    // Format of JSON is as follows:
    // [
    // {
    // title: "Title",
    // url: "www.example.com/title",
    // time: "Sunday "
    // }
    // ]
    //
    // How to use:
    // 1) Open up Google Chrome
    // 2) Login to Feedly and go to the "Saved For Later" list.
    // 3) Keep scrolling down the page until all saved documents have been loaded
    // 4) Right click on the page and select "Inspect Element"
    // 5) Inside the "Inspector" tool, click the "Console" tab.
    // 6) Paste the script below into the console
    // 7) Type copy(json) into the console
    //
    // Once you have followed the steps above, your list should be saved to your
    // clipboard and can be accesed by pressing "cmd + v" or "ctrl + v" to paste
    // the file somewhere.
    //
    // NOTE: You must switch off SSL (http rather than https) or jQuery won't load!

    // Feedly doesn't use jQuery so firstly inject it into the page
    if(!(window.jQuery)) {
    script = document.createElement('script');
    script.setAttribute('src', 'http://code.jquery.com/jquery-latest.min.js');
    script.setAttribute('type', 'text/javascript');
    script.onload = copyToClipboard;
    document.getElementsByTagName('head')[0].appendChild(script);
    } else {
    copyToClipboard();
    }

    json = ""
    function copyToClipboard() {
    // Loop through the DOM, grabbing the information from each bookmark
    map = jQuery("#section0_column0 div.u0Entry.quicklisted").map(function(i, el) {
    var $el = jQuery(el);
    var regex = /published:(.*)\ --/i;
    return {
    title: $el.data("title"),
    url: $el.data("alternate-link"),
    time: regex.exec($el.find("div.lastModified span").attr("title"))[1]
    };
    }).get(); // Convert jQuery object into an array

    // Convert to a nicely indented JSON string
    json = JSON.stringify(map, undefined, 2)
    }