您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Displays the horses exact energy, not the approximate energy. Requires a page refresh to update the energy listed on the page.
// ==UserScript== // @name Howrse Exact Energy // @namespace myHowrse // @description Displays the horses exact energy, not the approximate energy. Requires a page refresh to update the energy listed on the page. // @include http://*.howrse.com/elevage/chevaux/cheval* // @version 1 // ==/UserScript== scipts = document.getElementsByTagName("script"); i=0; while(scipts[i].text.indexOf("chevalEnergie") < 0 && i < scipts.length) ++i; horseVars = scipts[i].text; horseVars = horseVars.substring(horseVars.indexOf("chevalEnergie"),horseVars.length); firstEqual = horseVars.indexOf("="); firstSemi = horseVars.indexOf(";"); chevalEnergie = horseVars.substring(firstEqual+2,firstSemi); howrseEnergie = document.getElementById("energie"); howrseEnergie.textContent = chevalEnergie;