Notify Library

Very Simple JS Notifications Library

As of 2020-06-18. See the latest version.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/401626/817875/Notify%20Library.js

نووسەر
PIZIDAVI
وەشان
1.1.3
Created
2020-04-21
Updated
2020-06-18
Size
2.68 KB
مۆڵەت
MIT

Notify Library

Options:

  • text string - (required)
  • type string - (optional)
    • success
    • info / information
    • warn / warning
    • error
  • timeout number - (optional)

Example

  new Notify({
      text: 'Notification Text',
      type: 'success',
      timeout: false // Sticky Notifications
  }).show();