// ==UserScript== // @name Claude.ai Bulk Delete Automation // @namespace http://tampermonkey.net/ // @version 0.4 // @description One‑click wipe for Claude.ai Recents. Press once; script keeps looping across reloads until nothing is left. // @match https://claude.ai/recents* // @grant none // @license MIT // @downloadURL https://update.greasyfork.icu/scripts/540844/Claudeai%20Bulk%20Delete%20Automation.user.js // @updateURL https://update.greasyfork.icu/scripts/540844/Claudeai%20Bulk%20Delete%20Automation.meta.js // ==/UserScript== (function () { 'use strict'; /* ========= CONFIG ========= */ const CLICK_DELAY = 1500; // ms between each UI click const RELOAD_DELAY = 5000; // ms to wait after confirming delete before reload const START_DELAY = 2000; // ms after page load before auto-resume kicks in const BUTTON_LABEL = 'Bulk Delete'; /* ========================== */ // Use sessionStorage so the flag clears when the last Claude tab closes const storage = sessionStorage; const FLAG_KEY = '__bulkDeleteActive'; // key to persist automation state within the session const wait = ms => new Promise(r => setTimeout(r, ms)); /** * Clicks the first