Skip to content

Instantly share code, notes, and snippets.

@dontfreakout
dontfreakout / tggl-track-ceil.js
Created June 27, 2023 14:32 — forked from Gaspadlo/tggl-track-ceil.js
Toggle Track week overview logs ceiling rounder - rounds dangling seconds to full minutes (JS bookmarklet script)
javascript: window.sleepFn = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
window.processingLog = false;
window.processedLogs = 0;
clearInterval(window.roundingInterval);
window.visibleTogglEvents = Array.from(document.querySelectorAll(".rbc-event"));
window.visibleTogglEventsCount = window.visibleTogglEvents.length;
window.roundingInterval = setInterval(async () => {
if (window.processingLog) {
return;
}