RedAlan. Los Blogs

Thursday, April 21, 2022

BookMarklet Notifier

What is a Bookmarklet? A "Bookmark" for your browser, which instead of a url address contains a javascript code to use in the page you are visiting. This way you can get certain utilities without having to install addons and they work in most browsers. To ADD IT you only have to drag the link containing the Bookmarklet to your favourites bar.
Notifier is a Bookmarklet that will allow you to use push notifications with any page by detecting an html element.

To do this, remember that you have to give permission to that page so that it can make notifications. Once allowed, click on your bookmarklet and they will be active.

With element inspection you can find out when you want the notification to appear (a class, an id, etc). This notifier (to avoid multiple notifications) will only notify you once until the "item" no longer exists. The next time the "item" appears it will notify you again.

Please note that this is not a push notification (consulted on a server), but a notification to the system while the page is open.

I have created it for a webmail service that does not have integrated notifications, but you can customise it (time, item to search for and message) with the first variables.

For this I leave you a small utility with the source code so that you can easily customise it.
Bookmarklet Notificador

No comments:

Post a Comment