Greasy Fork is available in English.

FBase Lib

Base library

Este script não deve ser instalado diretamente. Este script é uma biblioteca de outros scripts para incluir com o diretório meta // @require https://update.greasyfork.org/scripts/461948/1361801/FBase%20Lib.js

Autor
satology
Versão
0.0.12
Criado
16/03/2023
Atualizado
17/04/2024
Licença
N/A

FBase Lib

Simple library to provide different helper functions you could use in your own scripts.

Features

  • wait: simple promisified wait
  • rndInt: simple function to return a random integer within a range
  • isVisible: for elements
  • isUserFriendly: for elements and document
  • CrawlerWidget class: extendable class providing the previous mention helpers
  • RecaptchaWidget class: extendable class that returns a promise when a recaptcha is solved.
  • 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.