A console script that watches the text of a .DkEaL element and beeps when it changes.
- Open your browser DevTools console on the target page.
- Paste and run the script.
- It stores the current value and alerts you on any change.
- Reads
document.querySelector('.DkEaL').textContentand saves it. - Watches for changes using a
MutationObserver(event-driven, instant) orsetInterval(polling, every 1 minute). - On change, plays a 400 Hz tone for 0.5s via the Web Audio API.
Call stopWatcher() in the console to stop watching.
- Audio may be blocked until you interact with the page (click anywhere), due to browser autoplay rules.
- The
DkEaLclass looks auto-generated and may change on reload — rerun with the new selector if it stops matching. - If the page replaces the element instead of editing its text (common in single-page apps like Google Maps), observe a stable parent container with
subtree: trueand re-query inside the callback.