Skip to content

Instantly share code, notes, and snippets.

@adokce
adokce / scriptYoutubePomodoro.js
Last active May 7, 2024 17:51
Pomodoro for YouTube (+YouTube Music) - Run in the browser tab's console to start/stop music in pomodoro interval
/**
* scriptYoutubePomodoro.js
*
* Overview:
* This script implements a Pomodoro timer that controls music playback on YouTube AND Youtube Music
* directly from the browser's console. It is designed to help manage work and break intervals
* by automatically playing and pausing music, along with playing distinct tones to indicate
* the transition between work and break periods.
*
* Features:
/**
* Delayed Debugger Script
*
* This script sets a 2-second delay before triggering the debugger in your browser's developer tools.
* It is useful for debugging hover states and other JavaScript-controlled interactions that don't
* respond to the browser's built-in hover emulation tools.
*
* Usage:
* 1. Open your browser's developer tools (press F12 or Ctrl+Shift+I).
* 2. Navigate to the "Console" tab.
@adokce
adokce / coding-standards-draft.md
Created June 19, 2026 00:34 — forked from dmmulroy/coding-standards-draft.md
coding-standards-draft.md

TypeScript Coding Standards

These standards describe how to design and write TypeScript code in this codebase. They are especially intended for agents: before adding patterns, libraries, adapters, or abstractions, read the existing code and prefer the local convention unless it conflicts with the safety/correctness principles below.

Decision priority

When rules pull in different directions, use this order:

  1. Preserve correctness, safety, and debuggability.
  2. Follow established project architecture and conventions.