Notify Library

Very Simple JS Notifications Library

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://greasyfork.org/scripts/401626-notify-library/code/Notify%20Library.js?version=921716

Author
PIZIDAVI
Ratings
0 0 0
Version
2.0
Created
2020-04-21
Updated
2021-04-14
License
MIT
Applies to
All sites

Notify Library

Very simple JS Notifications Library with integrated CSS

Options:

  • text string - (required)
  • type string - (optional)
    • success
    • info / information
    • warn / warning
    • error
  • timeout int - optional (default: 5s)

Example

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