H2P: notify util

通知栏

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greasyfork.org/scripts/411280/847422/H2P%3A%20notify%20util.js

Autor
Greasy丶H2P
Wersja
0.1.0
Utworzono
13-09-2020
Zaktualizowano
13-09-2020
Licencja
Brak licencji

1. 引入脚本

根据 greasyFork 指引,到脚本开头 require 本脚本

2. 传入 notifyMgr

  (($notifyMgr) => {
    ...
  })($notifyMgr)

3. 使用脚本

  // 会返回创建的弹窗的 id
  $notifyMgr.createNotify({ msg = '', type = notifyType.default, autoClose = true });

  $notifyMgr.closeNotify(id = '');