mws

自用工具库

Detta skript bör inte installeras direkt. Det är ett bibliotek för andra skript att inkludera med meta-direktivet // @require https://update.greatest.deepsurf.us/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!)

Upphovsman
rachpt
Version
1.0.3
Skapad
2022-05-27
Uppdaterad
2022-12-03
Size
3,95 KB
Licens
MIT

自用工具库

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

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

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

命名空间 mws