Google Exclusions Dynamic Clean

Blocks keywords and websites from Google search.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
ScriptKing
今日安裝
0
安裝總數
0
評價
0 0 0
版本
2.0
建立日期
2025-11-22
更新日期
2025-11-22
尺寸
3.5 KB
授權條款
MIT
腳本執行於

This Tampermonkey userscript automatically blocks unwanted websites and keywords from Google searches by dynamically appending a list of exclusions to your search queries. It ensures that Google’s search results exclude these terms while keeping your search input clean and user-friendly.

Key Features:

1. Dynamic Exclusion List – Define any number of websites or keywords in the `exclusions` array.
2. Automatic Query Modification – Before a search is submitted (via Enter key or search button), the script appends all exclusions (`-example.com`, `-keyword`) to your query.
3. Input Cleanup – Once the search results load, the script removes all appended exclusions from the search input bar so it displays a clean query.
4. Works with Instant Search – Observes DOM changes to dynamically clean the input and reapply exclusions as Google updates the page without full reloads.
5. Supports Multiple Submission Methods – Handles pressing Enter, clicking the search button, or single-page navigation updates.
6. Lightweight and Compatible – Uses plain JavaScript with minimal overhead and works on standard Google search pages.

Use Case:

- Avoid seeing results from specific websites, for example `reddit.com`.
- Filter out certain keywords automatically without having to type exclusions manually each time.
- Maintain a clean search bar without showing the exclusion filters.

How it Works (High-Level):

- Waits for the search input and search button to be available.
- Modifies your query on submission by appending exclusions.
- Cleans the search input to remove any `-website` or `-keyword` strings after search results load.
- Observes page mutations for dynamic updates on Google’s instant search results.