Greasy Fork

FBase Lib

Base library

目前为 2023-07-07 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.icu/scripts/461948/1216709/FBase%20Lib.js

作者
satology
版本
0.0.6
创建于
2023-03-16
更新于
2023-07-07
大小
3.3 KB
许可证
暂无

FBase Lib

First release of a simple library to provide different helper functions you could use in your own scripts.

Features

  • isVisible: for elements
  • isUserFriendly: for elements and document
  • CrawlerWidget class: extendable class providing the previous mention helpers
  • HCaptchaWidget class: extendable class that returns a promise when an hcaptcha is solved. It can be used this way:
let captcha = new HCaptchaWidget();
captcha.isSolved().then(.....);

You can overwrite the default selector when instantiating.