mws

自用工具库

Script này sẽ không được không được cài đặt trực tiếp. Nó là một thư viện cho các script khác để bao gồm các chỉ thị meta // @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.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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

Tác giả
rachpt
Phiên bản
1.0.3
Đã tạo
27-05-2022
Đã cập nhật
03-12-2022
Kích thước
4 KB
Giấy phép
MIT

自用工具库

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

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

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

命名空间 mws