您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
// ==UserScript== // @name 大店加可定制/桌垫可定制 // @namespace http://tampermonkey.net/ // @version 0.2 // @description try to take over the world! // @author You // @match https://porder.shop.jd.com/order/orderlist* // @grant none // ==/UserScript== (function() { var _name="" var bz_all=['桌垫可定制:无味 ','可定制: ','库房成品: ','布样: ',''] var num=0 'use strict'; let jbz='<button type="button" id="kdz" class="ivu-btn ivu-btn-primary ivu-btn-large" style=" background: #2199ff;color: #fff; border: 0px; float: left;"> <span>可定制</span></button>' window.onload=function(){ $(".ivu-modal-footer").eq(0).append(jbz) $("#kdz").click(function(){ let bz= $(".ivu-input").eq(0).val() for(var i=0;i <bz_all.length;i++){ bz=bz.replace(bz_all[i%bz_all.length],'') } bz=bz.replace(_name,'') num++ let bz1=bz_all[num%bz_all.length]+bz+_name $(".ivu-input").eq(0).val(bz1) }) } // Your code here... })();