Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including gentle-alerts with all npm packages installed. Try it out:

gentle-alerts lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("gentle-alerts/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gentle-alerts v1.2.5

Convert alerts into gentle notifications

Gentle Alerts

Google chrome extension to convert alerts into gentle notifications

Chrome Web Store npm

Codeship Status for albertyw/gentle-alerts Test Coverage Code Climate devDependencies Status

I started this project after getting annoyed with Google Calendar's event notifications. They used to have nice soft notifications, but they broke it when they graduated their feature from google labs and they haven't fixed it.

The extension will replace the built-in browser alert window with a modal which won't force you to context switch between tabs. It also prevents you from accidentally closing alert windows when you're typing.

You can close the modal by pressing "Enter", "Escape", or "Space". When opening, it has an audio chime.

Contributions welcome

Development

Gentle-Alerts does not depend on any third-party libraries (e.g. jQuery) and is written against ES 2015 spec for browser compatibility.

Testing

npm test

Note that on Codeship, this script needs to be run to downgrade the preinstalled Phantomjs version:

export PHANTOMJS_VERSION=1.9.7
\curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/phantomjs.sh | bash -s

Releasing a new version

  1. Update Changelog
  2. Update gentle-alerts/manifest.json with new version
  3. Update package.json with new version
  4. Commit a new release
  5. Tag and push the commit
  6. npm publish
  7. npm run package
  8. Upload the zip file to the chrome web store

Design

The logo is from logodust. The background color is rgb(132, 192, 215):

84c0d7

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free