您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto fill create trade offer form
当前为
// ==UserScript== // @name PnW Create Trade Offer Auto Fill // @description Auto fill create trade offer form // @include https://politicsandwar.com/nation/trade/create/ // @version 0.0.1 // @namespace https://greasyfork.org/users/3941 // ==/UserScript== if (!window.location.hash) return; var hash = window.location.hash; var pattern = /^#r([a-zA-Z]+)a([0-9]+)?$/; var result = hash.match(pattern); if (result === null) return; console.log(result); var res = result[1], amount = result[2]; jQuery(document).find('input[name="offeramount"]').attr("value", amount); jQuery(document).find('option[value="' + res + '"]').attr("selected", "selected");