Skip to content

Instantly share code, notes, and snippets.

View eskruolis's full-sized avatar

Eigirdas Skruolis eskruolis

View GitHub Profile
@eskruolis
eskruolis / mediumStoriesStats.js
Created February 17, 2022 09:47 — 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);