Last active
February 6, 2026 07:46
-
-
Save rennokki/e458aefaf7c39a31e67d4ea8ad5067c0 to your computer and use it in GitHub Desktop.
Gladiatus Scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Gladiatus Arena Simulator Link | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2026-02-05 | |
| // @description Display Gladiatus Simulator links inside the arena for easy checks. | |
| // @author The Gamefather Co. | |
| // @match https://*.gladiatus.gameforge.com/game/*mod=arena* | |
| // @include https://*.gladiatus.gameforge.com/game/*mod=arena | |
| // @include https://*.gladiatus.gameforge.com/game/*submod=grouparena | |
| // @include https://*.gladiatus.gameforge.com/game/*submod=grouparena* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=gameforge.com | |
| // @grant none | |
| // ==/UserScript== | |
| /** | |
| * WARNING: THIS WORKS ONLY IF YOU ACTIVATE `gladiatus.simulator-autofiller.js` | |
| * | |
| * Instructions: MODIFY ON LINE 65 OF THIS SCRIPT YOUR NAME AND YOUR GLADIATOR URL | |
| */ | |
| (function() { | |
| 'use strict'; | |
| const users = [...document.querySelectorAll('article aside table tr a, article section#own3 table tr a, article section#own2 table tr a')].map(i => ({ | |
| name: i.innerHTML, | |
| url: i.href, | |
| el: i, | |
| })) | |
| const currentUrl = new URL(window.location.toString()) | |
| const detailsFromUrl = (url) => { | |
| const regex = /https:\/\/s(?<SERVER_NAME>\d+)-(?<COUNTRY_NAME>[a-zA-Z]{1,3})\.gladiatus\.gameforge\.com\/.+/; | |
| const matches = url.match(regex) | |
| if (!matches) { | |
| return { | |
| server: null, | |
| country: null, | |
| } | |
| } | |
| return { | |
| server: matches.groups.SERVER_NAME, | |
| country: matches.groups.COUNTRY_NAME, | |
| } | |
| } | |
| const linkForBattle = (attacker, defender) => { | |
| const attackerDetails = detailsFromUrl(attacker.url) | |
| const defenderDetails = detailsFromUrl(defender.url) | |
| const attackerString = `${attacker.name.trim()}||~|~|~||${attackerDetails.country}||~|~|~||${attackerDetails.server}` | |
| const defenderString = `${defender.name.trim()}||~|~|~||${defenderDetails.country}||~|~|~||${defenderDetails.server}` | |
| let simulatorScriptName = "arena.php"; | |
| if (currentUrl.searchParams.get("submod") === "grouparena" || currentUrl.searchParams.get("aType") === "3") { | |
| simulatorScriptName = "turma.php"; | |
| } | |
| return `https://simulator.dinodevs.com/${simulatorScriptName}?attacker=${encodeURIComponent(attackerString)}&defender=${encodeURIComponent(defenderString)}` | |
| } | |
| const attacker = { | |
| name: "rennokki", | |
| url: "https://s301-en.gladiatus.gameforge.com/game/index.php?mod=player&p=82098&language=en" | |
| } | |
| for (const user of users) { | |
| const link = linkForBattle(attacker, user) | |
| const linkEl = document.createElement('a') | |
| linkEl.href = link | |
| linkEl.target = '_blank' | |
| linkEl.innerHTML = "🧪" | |
| user.el.parentElement.appendChild(linkEl) | |
| } | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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}` | |
| } | |
| } | |
| } | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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