Code Monkey home page Code Monkey logo

chrome-export-history's Introduction

Export History

A Chrome extension to export your history as csv or json.

Usage

Download it on the Chrome web store.

Contributing

Clone this repository:

$ git clone github.com:christiangenco/chrome-export-history.git

Then visit the extensions panel of your chrome settings, check developer mode, click Load unpacked extension, and select the directory you just cloned (for a more detailed explanation of these steps, visit Chrome's Getting Started: Building a Chrome Extension page).

Most of the logic is contained in popup.js. The method that makes the magic happen is chrome.history.search, but trying to convert the entire object returned in memory makes Chrome crash.

The workaround used by this extension is to convert each object of the returned results array individually and append it to a hidden div, #data. For whatever reason, the DOM has a much higher memory tolerance than javascript objects in chrome extensions.

The data in #data is then converted to a Blob and encoded to a data URI, which you can do like this:

var blob = new Blob([SOME_DATA], {type: 'application/octet-binary'});
var url = URL.createObjectURL(blob);

And then that url is stuck into a link and clicked on so it downloads as a file, which you can do like this:

var pom = document.createElement('a');
pom.setAttribute('href', url);
pom.setAttribute('download', filename);
pom.click();

Direct any questions to @cgenco if you get stuck.

License

Do whatever you want with this - but if you make money on it, I want some.

chrome-export-history's People

Contributors

christiangenco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chrome-export-history's Issues

How to troubleshoot

I've been using Export History each day for the past three days to export, one link at a time, my Saved bookmarks in the Digg RSS Reader. I open maybe 20 tabs at a time, export history, and repeat.

Today, export history has stopped working. I've purchased this Extension and the CSV export button is available. However, after clicking either CSV or JSON, nothing is saved. No download bar appears at the bottom of Chrome. Nothing is behaving as expected.

I redownloaded the extension. I restarted my Mac. I removed and reinstalled Chrome. I used the app Dr. Cleaner to remove old cache files.

Any other suggestions?

OSX 10.11.6
Chrome Version 65.0.3325.162 (Official Build) (64-bit)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.