GithubHelp home page GithubHelp logo

drone-ui-alerts's Introduction

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

drone-ui-alerts's People

Contributors

raybb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.