您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Market detax feature. Should work with or without the market overhaul script.
// ==UserScript== // @name IdlePixel market tax calculator // @namespace com.idlepixel // @version 1.0.0 // @description Market detax feature. Should work with or without the market overhaul script. // @author Apkhoil // @license MIT // @match *://idle-pixel.com/login/play* // @grant none // @require https://gf.qytechs.cn/scripts/441206-idlepixel/code/IdlePixel+.js?anticache=20230311 // ==/UserScript== (function() { 'use strict'; class MyDetaxPlugin extends IdlePixelPlusPlugin { constructor() { super("marketDetax", { about: { name: GM_info.script.name, version: GM_info.script.version, author: GM_info.script.author, description: GM_info.script.description }, }); } onLogin() { this.addDetaxButtons(); } addDetaxButtons() { const sellModal = $("#modal-market-configure-item-to-sell"); const sellPriceInput = sellModal.find("#modal-market-configure-item-to-sell-price-each").after(` <button type="button" onclick="IdlePixelPlus.plugins.marketDetax.detax()">detax</button> `); const addToMarketButton = sellModal.find('input.background-primary.hover').after(` <button type="button" class="background-primary hover" onclick="IdlePixelPlus.plugins.marketDetax.detax();Market.post_item()">Add to Market after detax</button> `); } detax() { const value = document.querySelector('#modal-market-configure-item-to-sell-price-each').value; const newValue = Math.floor(value / 1.01); $("#modal-market-configure-item-to-sell-price-each").val(newValue); try { //Integration with the market overhaul extension: it updates the total price. if(IdlePixelPlus.plugins.market != undefined) { IdlePixelPlus.plugins.market.applyTotalSell(); } } catch(err) { console.warning("There is some problem with the integration with the market overhaul extension. Can't update the total price.") } } } const plugin = new MyDetaxPlugin(); IdlePixelPlus.registerPlugin(plugin); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址