QOS-Handler

QOS-Handler(window param ver)

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greasyfork.org/scripts/430297/1128326/QOS-Handler.js

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
CosilC
Wersja
0.2
Utworzono
03-08-2021
Zaktualizowano
14-12-2022
Rozmiar
2,18 KB
Licencja
GPL

用途:流量控制

说明:载入时赋值到window.qos内,包含三个方法

record(sec, timesLimit)

  • 描述:记录这次的访问时间戳,并返回是否超出限制
  • 参数:
    • sec 时间限制
    • @param timesLimit 次数限制
  • 返回:sec秒内访问了超过timesLimit次 ? true : false

clearRecord()

  • 描述:清除缓存中的记录

getRecord()

  • 描述:获取记录的历史
  • 返回:历史记录数组