Firefox Workaround for Claude.ai Freeze Issue Using Tampermonkey Script

Firefox Freeze Issue and Workaround
A user on r/ClaudeAI reported persistent freezing issues when using Claude.ai in Firefox and shared a workaround using the Tampermonkey browser extension.
Technical Solution
The workaround involves creating a Tampermonkey script that modifies the Date.now() function to prevent timing conflicts that cause the interface to freeze. The script specifically targets the Claude.ai domain.
Script Implementation
Create a new Tampermonkey script with the following content:
// ==UserScript==
// @name Claude .ai Date.now fix
// @match https://claude.ai/*
// @run-at document-start
// @grant none
// ==/UserScript==
(function() {
const script = document.createElement('script');
script.textContent = `
(function() {
const _orig = Date.now.bind(Date);
let _last = 0;
Date.now = function() {
const t = _orig();
if (t <= _last) return ++_last;
return (_last = t);
};
})();
`;
document.documentElement.appendChild(script);
script.remove();
})();
The script works by intercepting Date.now() calls and ensuring they always return increasing values, preventing potential timing conflicts that cause the freeze.
Setup Requirements
- Firefox browser
- Tampermonkey extension installed
- Script configured to run on https://claude.ai/*
This type of timing workaround is sometimes necessary when browser APIs behave differently across implementations, particularly with time-sensitive operations in web applications.
📖 Read the full source: r/ClaudeAI
👀 See Also

Stop Burning Claude Code Tokens on Chat Questions
A developer on r/ClaudeAI saved their weekly token cap by routing simple chat questions to cheap models like Haiku, reserving Claude Code for agent tasks like multi-file edits.

Claude Code Visual: Practical Notes on Hooks, Subagents, MCP, and CLAUDE.md
A developer shares practical experience using Claude Code Visual, covering MCP hook syntax, CLAUDE.md for project context, subagent delegation patterns, and the /loop command for recurring tasks.

4 Files That Made Claude Code Write Safe Prod-Database Code
A developer shares four files—CLAUDE.md, MEMORY.md, framework.md, decisions/log.md—plus a Python bridge with idempotency keys and write guards that let Claude Code safely write to a Convex prod database.

OpenClaw on M4 Pro: Hitting Walls with Browser-Use, Computer-Use, and Codex
A user reports agents stuck in terminal loops, getting blocked on sites, and broken Codex outputs, seeking config tweaks for the automation browser, macOS GUI control, and interrupt loops.