mws

自用工具库

Dette scriptet burde ikke installeres direkte. Det er et bibliotek for andre script å inkludere med det nye metadirektivet // @require https://update.greasyfork.org/scripts/445645/1124334/mws.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Forfatter
rachpt
Versjon
1.0.3
Lagd
27.05.2022
Oppdatert
03.12.2022
Size
4 kB
Lisens
MIT

自用工具库

  • wait方法,返回一个promise,参数:

    1. 选择器,用于等待一个元素
    2. 第二个参数为查询超时时间(次数),10表示查询十次/一秒,默认值为Infinity
    3. 第三个参数为查询频率,默认300ms
    4. 第四参数为boolean,是否需要等待内容,默认值为false
  • sleep方法,返回一个promise,参数为毫秒。用于等待一定的时间

  • genBadgedFavicon 异步函数,反正新的添加标识的 icon。参数 url: 原icon链接,env: 环境,color: 颜色

命名空间 mws