Is there any mobile firefox plugin that blocks sites from asking to use notifications?
-
Sometimes it is a web-based dialog, so you can't just turn notifications off.
-
@sockpuppet7 said in Is there any mobile firefox plugin that blocks sites from asking to use notifications?:
Sometimes it is a web-based dialog, so you can't just turn notifications off.
https://support.mozilla.org/en-US/questions/1165867#answer-981820 stopped working?
-
@sockpuppet7 said in Is there any mobile firefox plugin that blocks sites from asking to use notifications?:
Sometimes it is a web-based dialog, so you can't just turn notifications off.
How is a add-on of any kind expected to infer an apps' desire to show notifications from an element in the DOM?
The only way I see this happening is from a curated Adblock list.
-
@tsaukpaetra If adblock can do that for apps, it is possible to do that for annoying notification questions (that is an ad IMO). It could also block stupid "this site has cookies" messages.
-
@sockpuppet7 said in Is there any mobile firefox plugin that blocks sites from asking to use notifications?:
@tsaukpaetra If adblock can do that for apps, it is possible to do that for annoying notification questions (that is an ad IMO). It could also block stupid "this site has cookies" messages.
Cool! Well, you should definitely get started writing those rules!
-
I suppose you could install a userscript plugin (such as Tampermonkey) which executes the following snippet:
delete window.Notification;
This removes the Notification object from the browser's public API, which should prohibit those pesky sites from bombarding you with permission requests as soon as you enter the site.
-
@tsaukpaetra said in Is there any mobile firefox plugin that blocks sites from asking to use notifications?:
How is a add-on of any kind expected to infer an apps' desire to show notifications from an element in the DOM?
Totally talking out of my ass here, but if an element has an event handler that references
window.Notification
, delete it and its parent node with extreme prejudice.
-
@heterodox that would probably just cause the dialog to break and become indismissable
-
I wish that for permissions dialogs there was a third option after ALLOW and DENY, which was PRETEND.
Want to send notifications? Sure, here's a direct route to
/dev/null
.Want my camera and microphone? Sure, but I'm in a very dark room so you won't see anything but black with some noise and all you'll hear is very quiet white noise.
What I'd most like PRETEND for, though, is popups. Too many sites take advantage of
window.open
bypassing the browser's popup blocker if the user clicks, even if the user clicks on something that doesn't in any way look like a button. For a while, Chrome had a really cool idea where popups would be tied to the current tab's address bar and you could drag them out, but I haven't seen that happen at all recently.
-
For the PRETEND geolocation API, I'd have it show me as being in the center of the nearest body of water to the server IP's location, with millimeter accuracy.
-
@ben_lubar said in Is there any mobile firefox plugin that blocks sites from asking to use notifications?:
I wish that for permissions dialogs there was a third option after ALLOW and DENY, which was PRETEND.
I effectively did that with FB. They asked, I said Yes. Firefox then asked, NEVER! Never another notification from FB.
-
@bb36e said in Is there any mobile firefox plugin that blocks sites from asking to use notifications?:
@heterodox that would probably just cause the dialog to break and become indismissable
Meh. If a site is displaying modal dialogs about notifications, you probably didn't want to use it anyway. ;)