Skip to content

Instantly share code, notes, and snippets.

View gonzalezgouveia's full-sized avatar

Rafael Gonzalez Gouveia gonzalezgouveia

View GitHub Profile
@gonzalezgouveia
gonzalezgouveia / mediumStoriesStats.js
Created February 14, 2019 19:17 — 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);