Deny webpage notification permission

Automatically deny all webpage notification permission requests.

Author
Scottdoha
Daily installs
0
Total installs
30
Ratings
0 0 0
Version
0.4
Created
2024-04-19
Updated
2024-05-02
License
MIT
Applies to
All sites

1. 功能描述:
用於阻止網頁彈出的通知權限請求框,從而避免網頁獲取用戶的通知權限。當用戶訪問一個帶有通知功能的網站時,有些網站會彈出請求權限的框,詢問用戶是否允許該網站發送通知。這個腳本可以自動模擬點擊「拒絕」按鈕,從而阻止網頁彈出的通知權限請求框。

2. 運作原理:
通過在網頁載入完成後和監聽DOM變化的方式,捕獲網頁彈出的通知權限請求框。當發現彈出的請求框時,腳本會自動找到並模擬點擊「拒絕」按鈕,從而阻止該請求。腳本通過監聽DOM變化,保證即使後續網頁元素動態生成,仍能正確攔截通知權限請求框。

3. 免責聲明:
使用者明確同意,該腳本僅用於阻止網頁彈出的通知權限請求框,並無其他用途。開發者不對使用該腳本可能導致的任何後果負責,包括但不限於導致網站功能異常、信息丟失等問題。使用者需自行承擔風險並謹慎使用。



1. Feature Description:
This script aims to thwart notification permission requests that intrude upon webpage visits, safeguarding user privacy. When navigating websites that utilize notification features, users often encounter intrusive prompts soliciting permission to send notifications. This script takes proactive measures by automatically triggering a simulated "Deny" response, thus preemptively obstructing the appearance of these intrusive notification permission dialogs.

2. How It Works:
Operating seamlessly behind the scenes, this script vigilantly monitors webpage activity by tracking changes within the Document Object Model (DOM) and upon full page load. Once it detects the emergence of a notification permission request dialog, the script swiftly intervenes, executing an automated process to locate and virtually "click" the "Deny" button. Its robust DOM monitoring capability ensures precise interception, even amidst dynamic webpage element generation.

3. Disclaimer:
Users are reminded that this script serves a singular purpose: to combat intrusive notification permission requests on webpages. It is imperative to acknowledge that the developer bears no responsibility for any ramifications arising from script usage, including potential website malfunctions or data compromise. Users are urged to exercise discretion and assume personal accountability for employing the script.