Skip to content

Instantly share code, notes, and snippets.

@OrdChrist
OrdChrist / raridade.js
Last active May 11, 2025 05:51
Ver raridade e vender se comum
function getPercentage() {
const span = [...document.querySelectorAll('span')].find(el =>
el.textContent.includes('%')
);
if (!span) return null;
const text = span.textContent.trim().replace('%', '');
const value = parseInt(text, 10);
return isNaN(value) ? null : value;
}
@OrdChrist
OrdChrist / bestiary-auto-battle.js
Last active May 10, 2025 23:44
Auto battle script for Bestiary Arena
// ==UserScript==
// @name Bestiary Auto Battle
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Inicia automaticamente a batalha no Bestiary Arena quando disponível
// @match https://bestiaryarena.com/*
// @grant none
// ==/UserScript==
(function () {