您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
IdlePixel+ Ui tweaks
当前为
// ==UserScript== // @name IdlePixel+ AviusUiTweaks // @namespace com.avius.idlepixel.aviusuitweaks // @version 0.0.4-rc5 // @description IdlePixel+ Ui tweaks // @author Avius // @license MIT // @match *://idle-pixel.com/login/play* // @grant none // @require https://gf.qytechs.cn/scripts/441206-idlepixel/code/IdlePixel+.js // ==/UserScript== (function() { 'use strict'; class AviusUiTweaks extends IdlePixelPlusPlugin { constructor() { super("aviusuitweaks", { about: { name: GM_info.script.name, version: GM_info.script.version, author: GM_info.script.author, description: GM_info.script.description }, config: [ ] }); } onLogin() { $("head").append(` <style id="avius-ui-tweaks"> .avius-itembox { position: relative; } .avius-badge { position: absolute; bottom: 0; right: 0; font-size: 0.69em; // nice } .avius-brewing-xp-total { padding-bottom: 12px; } </style> `); const makeBadge = function() { const el = $(this); el.addClass("avius-itembox"); el.append(`<div class="avius-badge"></div>`); }; debugger; const cookingRows = $("#cooks_book-table").children("tbody").first().children("tr"); const cookingHeader = cookingRows.first(); cookingHeader.children("th").each(function(){ const el = $(this); el.width(el.width()-1); }); cookingHeader.append(`<th width="9%" class="p-2">RATIOS</th>`); cookingRows.not(":eq(0)").each(function(){ const el = $(this); el.width(el.width()-1); el.append(` <td class="p-2 color-grey font-small" style="color: rgb(128, 128, 128);"> <div class="avius-cooking-meta-food"> <span class="avius-cooking-meta-food-ratio">-</span> xp per <img src="https://d1xsc8x7nc5q8t.cloudfront.net/images/energy.png" title="energy"> </div> <div class="avius-cooking-meta-time"> <span class="avius-cooking-meta-time-ratio">-</span> xp per h </div> </td>`); }) $(`#panel-brewing itembox`).each(makeBadge); $(`#panel-gathering itembox`).each(makeBadge); const first = $(`#panel-brewing itembox`).first(); $(`<div class="avius-brewing-xp-total"></div>`).insertBefore(first); } getCookingRows(){ return $("#cooks_book-table").children("tbody").first().children("tr[data-cooks_book-item]"); } onPanelChanged(panelBefore, panelAfter) { if(panelAfter == "brewing"){ let total = 0; $(`#panel-${panelAfter} itembox`).each(function() { const el = $(this); const key = el.attr("data-tooltip"); const amount = Items.getItem(key); const value = Brewing.get_xp_from_materials(key, amount); const badge = el.find(".avius-badge"); if (value == 0){ badge.text(""); }else{ total += value; badge.text(`${value}xp`); } }); $(".avius-brewing-xp-total").text(`Total ingredient xp: ${total}`) } else if (panelAfter == "gathering"){ $(`#panel-${panelAfter} itembox`).each(function() { const el = $(this); const key = el.attr("data-item"); const amount = Items.getItem(key+"_total"); const badge = el.find(".avius-badge"); if (amount == 0){ badge.text(""); }else{ badge.text(amount); } }); } else if (panelAfter == "cooking"){ this.getCookingRows().each(function(){ const el = $(this); debugger; const item = el.attr("data-cooks_book-item"); const rows = el.children("td"); const energyEl = $(rows[4]); const timeEl = $(rows[5]); const xpEl = $(rows[6]) const ratioRow = $(rows[8]) const foodLabelEl = ratioRow.find(".avius-cooking-meta-food-ratio"); const xpLabelEl = ratioRow.find(".avius-cooking-meta-time-ratio"); foodLabelEl.test("test"); xpLabelEl.test("test2"); }); } } } const plugin = new AviusUiTweaks(); IdlePixelPlus.registerPlugin(plugin); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址