Skip to content

drone.io ui gets updating favicon and desktop notifications

License

Notifications You must be signed in to change notification settings

RayBB/drone-ui-alerts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

drone-ui-alerts

This script adds updating favicon and desktop notifications to drone.io ui.

What does this do

It makes the drone-ui favicon refelect the status of the pipeline on the current page instead of the status of all pipelines running.

It also sends a notification when the pipeline status changes.

colors updating

Why

It is annoying to keep checking the drone page for updates instead of looking at the favicon or seeing a notification. There is an open issue in the drone-ui repo about this.

Installation

This script was designed to be used with Violentmonkey but should also work with Greasemonkey or Tampermonkey.

To use this script just install one of the extension above, click create new script, and paste this script.

You should update the @match section at the top of the script with the url of your drone installation.

Bookmarklets

You can make a bookmarklet to run as needed instead of installing an extension. I recommend creating the bookmarklet using this tool. Notifications won't work with the bookmarklet since they depend on the GM_notification api.

Next Steps

  • Use getValue for user preferences s
  • Use a more object oriented approach
  • Evaluate using the MutationObserver instead of polling

Learnings

About

drone.io ui gets updating favicon and desktop notifications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published