Skip to content

Instantly share code, notes, and snippets.

@jaimergp
jaimergp / better-harvest.js
Last active February 25, 2023 14:24
Add this as a bookmarklet (`javascript:<Paste this gist>`) to add some features to Harvest web UI
var table = document.getElementsByClassName("week-view-table")[0];
table.style.borderCollapse = "collapse";
var trs = document.getElementsByClassName("week-view-entry");
var curr_id = "0";
var curr_cum_hours = 0;
var curr_cum_mins = 0;
var total_length = trs.length;
var i = 0;
function addTotalRow(table, tr, pos, hours, mins) {
var new_row = table.insertRow(pos+1);
@jaimergp
jaimergp / README.md
Created January 22, 2024 12:28
Zero-to-hero to Hevy

From Zero To Hero to Hevy

I had been using Zero To Hero for years to track my workouts. The app has not seen development in a while.

You can backup your ZTH data to a Realm database via the app. This .zth file can be exported to a JSON with the attached Node.js script (you need npm install realm).

Then the JSON can be post-processed into a CSV file following the Strong app format (I took this sample).