您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Rulesy's ghoulHungerPercentages
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/31204/204646/ghoulHungerPercentages.js
var modules = modules || {}; modules.ghoulHungerPercentages = { name: 'Ghoul Hunger Percentages', description: 'Shows the percentage of your hunger bar.', icon: '/gfx/icons/small_ghoul.gif', pages: '.', init: function() { var ghoulBox = $('#ghoulHunger'); if (ghoulBox.length == 0) { return; } var hungerContent = $('.content', ghoulBox); if (!hungerContent || !hungerContent.html()) { return; } if (hungerContent.html().match(/\%/)) { return; } var hungerBarWidth = 150; // pixels var hungerLimit = 40; // percent var hungerWidth = parseInt($('.hbar', ghoulBox).width()); var percentageOfBar = 100 / hungerBarWidth * hungerWidth; var percentageOfHunger = 100 / hungerLimit * percentageOfBar; var newText = "Hunger : " + Math.round(percentageOfBar) + "% (" + Math.round(percentageOfHunger) + "% of limit)"; var currentContent = hungerContent.html(); hungerContent.html(currentContent.replace('Hunger :', newText)); ghoulBox.domChange(function() { window.setTimeout(modules.ghoulHungerPercentages.init, 1000); }); }, config: function() { var content = ''; content += '<h2>Before</h2>'; content += '<img alt="before" src="http://die2nite.gamerz.org.uk/gm/images/mod_ghoulHungerPercentages_before.png">'; content += '<h2>After</h2>'; content += '<img alt="after" src="http://die2nite.gamerz.org.uk/gm/images/mod_ghoulHungerPercentages_after.png">'; return content; } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址