Skip to content

Instantly share code, notes, and snippets.

View rohanjoseph93's full-sized avatar

Rohan Joseph rohanjoseph93

View GitHub Profile
@rohanjoseph93
rohanjoseph93 / mediumStoriesStats.js
Last active July 31, 2018 15:09 — forked from epintos/mediumStoriesStats.js
Export Medium Stats Stores to CSV
// Run Inspector Console in chrome and copy and paste the following code in the /stats/stories view
function download(filename, text) {
var pom = document.createElement('a');
pom.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
pom.setAttribute('download', filename);
if (document.createEvent) {
var event = document.createEvent('MouseEvents');
event.initEvent('click', true, true);