Skip to content

Instantly share code, notes, and snippets.

View adokce's full-sized avatar

Adnan Karšić adokce

View GitHub Profile
@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.