Skip to content

Instantly share code, notes, and snippets.

@rennokki
Last active February 6, 2026 07:46
Show Gist options
  • Select an option

  • Save rennokki/e458aefaf7c39a31e67d4ea8ad5067c0 to your computer and use it in GitHub Desktop.

Select an option

Save rennokki/e458aefaf7c39a31e67d4ea8ad5067c0 to your computer and use it in GitHub Desktop.
Gladiatus Scripts
// ==UserScript==
// @name Gladiatus Auction Visualizer
// @namespace http://thecodefather.co
// @version 2026-02-06
// @description Gladiatus Auctions now display full item stats without having to hover.
// @author The Gamefather Co.
// @match https://*.gladiatus.gameforge.com/game/*mod=auction*
// @icon https://www.google.com/s2/favicons?sz=64&domain=gameforge.com
// @grant none
// ==/UserScript==
/**
* WARNING: THIS WORKS ONLY IF YOU ACTIVATE `gladiatus.arena-simulator-link.js`
*
*/
(function() {
'use strict';
window.onload = () => {
const items = [...document.querySelectorAll("div.auction_item_div ~ div.auction_bid_div")]
for (const item of items) {
const itemDiv = item.parentElement.querySelector(".auction_item_div")
const tooltip = itemDiv.querySelector("[data-tooltip]")
const data = JSON.parse( tooltip?.attributes?.['data-tooltip']?.value || '[]')
item.innerHTML = `<hr>${item.innerHTML}`
const diffs = {
plus: 0,
minus: 0,
percPlus: 0,
percMinus: 0,
}
for (const [potentialLine, color] of Array.from(data[0]).reverse()) {
let style = {
//
}
let line = potentialLine
if (Array.isArray(line)) {
line = line[0]
}
// Percentage Bonus (e.g. Dexterity +26%, Health +10%)
if (/^(.*?) \+(\d+)[%](.*?)$/i.test(line)) {
style.color = "#FFFFFF" // White
style['font-size'] = "1.1em"
diffs.percPlus++
}
// Flat Bonus (e.g. Damage +9, Health +100)
if (/^(.*?) [\+?]\d+$/i.test(line)) {
style.color = "#000aee" // Blue
diffs.plus++
}
// Negative Bonus (e.g. Damage -9, Health -100, Dexterity -26%)
if (/^(.*?) -(\d+)(%?)(.*?)$/i.test(line)) {
style.color = "#7e7e7e" // Gray
style['font-weight'] = "bold"
diffs.minus++
}
const styleString = Object.entries(style).map(([key, value]) => `${key}: ${value}`).join(";")
item.innerHTML = `<div style="${styleString}">${line}</div>${item.innerHTML}`
}
}
}
})();
// ==UserScript==
// @name Gladiatus Simulator Autofiller
// @namespace http://tampermonkey.net/
// @version 2026-02-05
// @description Autofill simulator data using URLs like attacker=rennokki13212:en:301&defender=Totyaaa:en:301
// @author The Gamefather Co.
// @match https://simulator.dinodevs.com/arena.php*
// @include https://simulator.dinodevs.com/turma.php*
// @icon https://www.google.com/s2/favicons?sz=64&domain=dinodevs.com
// @grant none
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
const updateValues = (attacker, defender) => {
const [attackerName, attackerCountry, attackerServer] = attacker
const [defenderName, defenderCountry, defenderServer] = defender
$('#attacker-name').val(attackerName)
$('#attacker-country').val(attackerCountry)
$('#attacker-server').val(attackerServer)
$('#defender-name').val(defenderName)
$('#defender-country').val(defenderCountry)
$('#defender-server').val(defenderServer)
}
window.onload = function () {
if (typeof $ === "undefined") return
const url = new URL(window.location.toString())
if (url.searchParams.get("attacker") && url.searchParams.get("defender")) {
const [attacker, defender] = [url.searchParams.get("attacker") || 'rennokki:en:301', url.searchParams.get("defender") || 'rennokki:en:301']
const attackerValues = attacker.split("||~|~|~||")
const defenderValues = defender.split("||~|~|~||")
// Update the values 2 times each second.
let checks = 0;
const checkInterval = setInterval(() => {
updateValues(attackerValues, defenderValues)
// If > 4 checks were made (2 seconds passed), we clear the interval as the value will no longer update.
if (checks >= 4) clearInterval(checkInterval)
}, 500)
// $('form[action="turma.php"] button, form[action="arena.php"] button').click()
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment