mws

自用工具库

สคริปต์นี้ไม่ควรถูกติดตั้งโดยตรง มันเป็นคลังสำหรับสคริปต์อื่น ๆ เพื่อบรรจุด้วยคำสั่งเมทา // @require https://update.greasyfork.org/scripts/445645/1124334/mws.js

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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!)

ผู้เขียน
rachpt
เวอร์ชัน
1.0.3
สร้างเมื่อ
27-05-2022
อัปเดตเมื่อ
03-12-2022
Size
3.95 กิโลไบต์
สัญญาอนุญาต
MIT

自用工具库

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

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

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

命名空间 mws