// ==UserScript== // @name FF14道具仓库批量领取 // @description 最终幻想14道具仓库批量领取 // @namespace https://greasyfork.org/users/129402 // @match https://qu.sdo.com/* // @grant GM_setValue // @grant GM_getValue // @version 2.1.1 // @license GNU General Public License v3.0 or later // @compatible chrome // @compatible firefox // @compatible opera // @compatible safari // @run-at document-end // @downloadURL https://update.greasyfork.icu/scripts/376076/FF14%E9%81%93%E5%85%B7%E4%BB%93%E5%BA%93%E6%89%B9%E9%87%8F%E9%A2%86%E5%8F%96.user.js // @updateURL https://update.greasyfork.icu/scripts/376076/FF14%E9%81%93%E5%85%B7%E4%BB%93%E5%BA%93%E6%89%B9%E9%87%8F%E9%A2%86%E5%8F%96.meta.js // ==/UserScript== "use strict"; (() => { $.ajax({ cache: true, dataType: "script", url: "https://qu.sdo.com/static/lib/moment-2.24.0.min.js", }); const button = $("
"); button.css({ "background-color": "#fff", border: "gray solid 1px", "border-radius": "4px", bottom: "1rem", cursor: "pointer", "font-size": "14px", "font-weight": "700", "letter-spacing": ".5em", "line-height": "1.5", padding: ".5em 0 .5em .5em", position: "fixed", right: "1rem", width: "3em", "z-index": 73, }); button.text("批量领取"); button.appendTo("body"); button.on("click", () => { const container = $("
"); container.css({ "background-color": "#fff", border: "gray solid 1px", "border-radius": "4px", bottom: "2rem", color: "#303133", "font-size": "14px", left: "calc(50vw - 600px)", "line-height": "1.5", position: "fixed", top: "2rem", width: "1200px", "z-index": 137, overflow: "auto", }); container.appendTo("body"); const closeButton = $(""); closeButton.on("click", () => { if (closeButton.is(":not(:disabled)")) { container.remove(); } }); container.append(closeButton); const title = $("
"); title.text("批量领取道具"); title.css({ "border-bottom": "gray solid 1px", "font-size": "20px", margin: ".5rem auto", "text-align": "center", width: "1100px", }); container.append(title); const chooseContainer = $("
"); chooseContainer.text("选择仓库:"); chooseContainer.css({ "border-bottom": "gray solid 1px", left: "50px", margin: ".5rem auto", "padding-bottom": ".5rem", position: "sticky", "text-align": "center", top: ".5rem", width: "1100px", background: "white", }); const paidWarehouseInput = $(""); paidWarehouseInput.attr({ id: "3a755830-cfd0-4999-a79b-9dcf62e6669f", type: "radio", }).css("margin", "0 .5rem"); const freeWarehouseInput = $(""); freeWarehouseInput.attr({ id: "005c8d3a-4594-4e7b-af4d-865498126a36", type: "radio", }).css("margin", "0 .5rem"); const paidWarehouseInputLabel = $("