Blocks overly-eager permission requests for notifications, location, etc. For example, before you've interacted with the page.

Latest Version

Version
1.0.7
Update
March 4, 2018
Size
57.04KiB
Developer
adamlynch.com
Category
Users
164
Rating
3.66667 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
See more

AskBlocker Extension

Block overly-eager permission requests for notifications, location, etc. For example, ones that happen before you've interacted with the page. This was created as part of How to improve your permissions UX (https://adamlynch.com/improve-permissions-ux).

How it works:

Permissions requests are blocked until you've interacted with the page; i.e. click, tap, or key press. Although there are the following exceptions:

- If the permission has been previously requested and granted (or explicitly denied).
- If the domain is `localhost` or `127.0.0.1`.
- If you've navigated to the current page from another page on the same domain.

Things not covered and why:

- Accelerometer, gyroscope, magnetometer, device motion, device orientation, etc. They don't trigger a permissions request popup.
- Ambient light sensor. It doesn't trigger a permissions request popup.
- Bluetooth. This can only be requested due to user interaction anyway (https://webbluetoothcg.github.io/web-bluetooth/#requestDevice-user-gesture).
- Clipboard. It doesn't trigger a permissions request popup.
- Flash. I don't know how the prompt is triggered or how I can intercept this.
- Geolocation's `watchPosition` method. There's no way to achieve this without breaking stuff. It returns an ID and it doesn't offer any way to check the status of the permission, like `Notification.permission`. The Permission API could be used but it's asynchronous (Promise based), so there's no way to use it and also still return the ID.
- Web USB. Not really supported yet (and the Permission API doesn't support it yet), so it probably won't be annoying anyone.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "AskBlocker", "description": "Blocks overly-eager permission requests for notifications, location, etc. For example, before you've interacted with the page.", "version": "1.0.7", "homepage_url": "https://adamlynch.com/askblocker", "background": { "scripts": [ "browser-polyfill.min.js", "background.js" ] }, "browser_action": { "default_icon": "icons/askBlocker-128.png", "default_popup": "popup.html" }, "content_scripts": [{ "matches": [""], "all_frames": true, "js": [ "browser-polyfill.min.js", "content.js" ], "run_at": "document_start" }], "icons": { "16": "icons/askBlocker-16.png", "32": "icons/askBlocker-32.png", "48": "icons/askBlocker-48.png", "128": "icons/askBlocker-128.png", "512": "icons/askBlocker-512.png" }, "permissions": []}
Read more

Similar Extensions

icon

PopupBeGone Extension · Accessibility 164 4 ★ 65.58KiB

icon

Block Website Notification Requests Extension · Developer Tools 164 5 ★ 20.2KiB

icon

Block Notifications Extension · Productivity 164 20 ★ 7.93KiB

icon

Nope 2 Overlays Extension · Productivity 164 8 ★ 143KiB

icon

Origin Requests Only (Firewall) Extension · Productivity 164 12 ★ 102KiB

icon

Block Unreachable Scripts Extension · Productivity 164 6 ★ 11.06KiB

icon

WhackAMole Ad-Blocker Extension · Productivity 164 4 ★ 42.17KiB

icon

Security Tweaks Extension · Productivity 164 3 ★ 3.07MiB

icon

Content-aware Ad Blocker Extension · Productivity 164 11 ★ 865KiB

icon

Remove Cookie Banners Extension · Productivity 164 35 ★ 210KiB

icon

CookiesBlock - cookie pop-ups Extension · Productivity 164 11 ★ 57.26KiB

icon

No Cookie Warning Extension · Accessibility 164 12 ★ 1.07MiB

icon

Popup Blocker 2020 - Working! Extension · Accessibility 164 8 ★ 18.09KiB

icon

Policy Control Extension · Productivity 164 3 ★ 48.47KiB

icon

NoDetour Extension · Productivity 164 7 ★ 125KiB

icon

LEX Ad Blocker Extension · Developer Tools 164 3 ★ 15.55KiB

icon

Forget Me Now Extension · Productivity 164 0 ★ 4.44MiB

icon

Site Bleacher Extension · Productivity 164 3 ★ 23.54KiB

icon

Policy Control - JavaScript and Flash blocker Extension · Productivity 164 12 ★ 20.22KiB

icon

Ignore Google Scripts Extension · Productivity 164 3 ★ 18.68KiB

icon

Privacy Guard & Manager Extension · Productivity 164 2 ★ 34.69KiB

icon

Host AdBlocker Extension · Productivity 164 18 ★ 3.7MiB

icon

Block Chrome Notifications Extension · Productivity 164 8 ★ 27.67KiB

User reviews

icon

Ryan Close (ID: 000000ceaf86099b) Voted 1 ★ - Updated 03/26/2020 Useless. I'm forced to give this 1 more star than 'asks' that it blocked (0)

icon

Ancient Ukr (ID: 000000ac8e965517) Voted 5 ★ - Updated 08/28/2019 Thank you for good work!

icon

Xedd MrC (ID: 0000001c5ad6a65c) Voted 5 ★ - Updated 03/10/2018 Finally! An extension that blocks those annoying requests. I don't know why random sites I only intend to visit for a minute or so, feel the need to request permissions to spam me with notifications or get my location. Can't thank you enough dev. 5 stars well deserved.