🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Grok Batch Deleter

Bulk delete files, share links, and deleted chats from Grok in safe batches. Auto-scrolls to load more, skips your exceptions (e.g., .pdf, "important"), and shows live progress. Fast, smart, and beautiful.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
Vishwas R
1日のインストール数
3
累計インストール数
19
評価
0 0 0
バージョン
1.0
作成日
2025/11/05
更新日
2025/11/05
大きさ
21.9KB
ライセンス
MIT
対象サイト

Grok Batch Deleter

Bulk delete files, share links, and deleted chats from Grok in safe batches. Auto-scrolls to load more, skips your exceptions (e.g., .pdf, "important"), and shows live progress. Fast, smart, and beautiful.


Overview

Grok Batch Deleter is a Tampermonkey / Greasemonkey script that lets you bulk delete items across three Grok pages:

It features a beautiful UI, real-time progress, smart exceptions and low-memory processing — perfect for cleaning up hundreds or thousands of items without crashing your browser.


Key Features

Feature Description
Batch + Scroll Deletion Deletes all currently loaded items, automatically scrolls to load more, deletes them, and repeats until nothing is left.
Smart Exceptions Skip files by extension (e.g., .pdf, .md) or chats by keywords (e.g., important, work).
Page Auto-Detection Detects which page you're on and adjusts behavior automatically.
Real-Time Stats See deleted, skipped, and progress live.
Stop Anytime Click Stop to cancel instantly.
Safe & Efficient Processes in small batches — no full pre-load, no memory bloat.

How It Works (The Magic Behind Batch + Scroll)

"Delete → Scroll → Delete → Repeat"

Grok uses infinite scroll — only a few dozen items load at a time. Loading everything at once would crash your browser if you have 10,000+ files.

This script avoids that by:

  1. Step 1: Finds all currently visible items in the list.
  2. Step 2: For each:
    • Reads the title
    • Checks if it matches your skip list (e.g., .pdf or important)
    • If not skipped, hovers to reveal the Delete button → clicks → confirms
  3. Step 3: After deleting the batch, scrolls down to load the next set.
  4. Step 4: Waits for new items to appear.
  5. Step 5: Repeats from Step 1 until no new items load (3 failed scrolls = done).

Result: You can delete thousands of items in under 10 minutes, safely and smoothly.


Installation

  1. Install Tampermonkey (Chrome/Edge) or Greasemonkey (Firefox).
  2. - Open Tampermonkey → Create a new script
    • Paste the full script → Save

Usage

  1. Go to any of these pages:

  2. You’ll see a control panel at the top.

  3. Configure:

    • Target Page: Auto-selected, but you can change.
    • Skip Extensions / Keywords:
      • Files: pdf, jpg, md → keeps these files
      • Chats: important, draft → keeps chats with these words
  4. Click Start

  5. Watch it:

    • Delete current list
    • Scroll down
    • Load more
    • Delete again
    • Repeat until done
  6. Click Stop to cancel.


Example Use Cases

Page Skip Input Result
Files pdf, docx Deletes all except PDFs and Word docs
Share Links pdf Deletes all shared links except those with .pdf
Deleted Chats backup, important Permanently deletes all chats except those with "backup" or "important" in title

Technical Details

  • Selectors are based on Grok’s current DOM (as of Nov 2025).
  • Uses button[aria-label="Delete file"] and hover events to reveal hidden buttons.
  • Confirms deletion via global modal.
  • Works in left panel (#_r_2s_ .overflow-y-auto).
  • No external dependencies.

Safety & Privacy

  • Runs entirely in your browser
  • No data sent anywhere
  • Only interacts with your own Grok account
  • You control what gets deleted