您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Provides an amount of neopoints needed for the job to let you break even on the Grundo's Cafe version of the Faerieland Employment Agency.
// ==UserScript== // @name GC - Faerieland Employment Agency Target Price Calculator // @description Provides an amount of neopoints needed for the job to let you break even on the Grundo's Cafe version of the Faerieland Employment Agency. // @namespace https://www.grundos.cafe/ // @version 1.1 // @match https://www.grundos.cafe/faerieland/employ/jobs/?page=* // @match https://grundos.cafe/faerieland/employ/jobs/?page=* // @require https://code.jquery.com/jquery-3.6.0.min.js // @grant none // @license 0BSD // @author sinza // ==/UserScript== const jobListings = $(".fea_thejob"); const superJob = window.location.href.endsWith("&type=super") if (superJob) { targetPrice(8) } else { targetPrice(10) } function targetPrice(location) { jobListings.each((index, value) => { const job = $(value); // Gets the amount needed of an item. const itemAmount = Number(job.contents()[1].textContent.match(/\d+/)); // Gets the amount of Neopoints to be rewarded const neopointAward = Number(job.contents()[location].textContent.replace(",", "").match(/\d+/)); const targetPrice = neopointAward / itemAmount; job.append("<p><b>Target Price:</b> " + targetPrice + " NP</p>") }) }