H2P: notify util

通知栏

이 스크립트는 직접 설치하는 용도가 아닙니다. 다른 스크립트에서 메타 지시문 // @require https://update.greatest.deepsurf.us/scripts/411280/847422/H2P%3A%20notify%20util.js을(를) 사용하여 포함하는 라이브러리입니다.

작성자
Greasy丶H2P
버전
0.1.0
생성일
2020-09-13
갱신일
2020-09-13
크기
4.21KB
라이선스
해당 없음

1. 引入脚本

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

2. 传入 notifyMgr

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

3. 使用脚本

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

  $notifyMgr.closeNotify(id = '');