Notification Prompt Blocker
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Notification Prompt Blocker automatically detects and removes both browser-native notification permission dialogs and in-page overlay prompts that request notification access. It prevents websites from triggering the "Allow notifications?" browser prompt, blocks in-page subscription overlays, and removes existing notification permission elements from the page. The script works silently in the background, keeping your browsing experience interruption-free while preventing unwanted notification spam.
WHERE IT RUNS
This userscript runs on any website you visit, with full control over which sites are blocked through a per-site whitelist. You can enable or disable the blocker globally, or add specific domains to the whitelist to allow notification requests on trusted sites. The script operates entirely within your browser's userscript environment and requires no external services or API calls.
HOW TO USE
After installation, the script activates immediately with default settings. A floating panel appears on the page with controls to toggle blocking on/off, manage the whitelist, enable logging, and view statistics. The toggle switch lets you temporarily disable blocking without losing your settings. The whitelist supports exact domain matches and wildcard patterns (e.g., "*.example.com") for flexible control. Use the "Block now" button to manually trigger prompt removal on the current page.
TECHNICAL MECHANISM: NOTIFICATION API OVERRIDE
Unlike simple CSS-based prompt hiders, this script intercepts the actual JavaScript notification API calls before they reach the browser. It overrides Notification.requestPermission() to immediately return "denied" without showing the browser's native permission dialog. It also overrides navigator.permissions.query() for the "notifications" permission descriptor, returning a denied state to prevent permission checks that might trigger prompts. This approach stops prompts at the source, preventing both the dialog and any subsequent permission state changes. The script combines this API interception with DOM mutation observation to detect and remove dynamically injected notification overlays from frameworks like OneTrust, CookieScript, and custom implementations.
THE PANEL
The included BotGentz panel provides a clean interface that can be dragged anywhere on the page, snapped to edges, and collapsed to a small bubble showing the emoji icon. The panel automatically saves its position and collapsed state per site, so it stays where you left it. Press the Escape key to quickly collapse the panel, and click the bubble to restore it. The panel can be resized by dragging its edges and will remember custom dimensions.
PLEASE NOTE
This script requires the free BotGentz extension to function. It does not collect, transmit, or store any personal data except for user-defined settings (enable/disable state, whitelist entries, and logging preference) which are stored locally using GM_setValue. Websites change frequently, and notification prompt implementations may evolve; if the script stops working on a particular site, check for updates or adjust the whitelist. This tool does not block non-notification prompts such as cookies, location, or camera permissions. For privacy concerns, all settings are stored locally and never leave your device.