您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
// ==UserScript== // @name DLD inscription assistant // @namespace http://tampermonkey.net/ // @version 1.0 // @description try to take over the world! // @author You // @include https://dld.qzapp.z.qq.com/qpet/cgi-bin/phonepk?zapp_uin=&sid=&channel=0&g_ut=1&cmd=inscription&subtype=2&type_id=* // @include https://dld.qzapp.z.qq.com/qpet/cgi-bin/phonepk?zapp_uin=&sid=&channel=0&g_ut=1&cmd=inscription&subtype=4&type_id=*&weapon_idx=*&attr_id=* // @require https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js // @grant none // ==/UserScript== function request(url){ $.ajaxSettings.async = false; let retData; $.get(url, function(data){ retData = data; }); return retData; }; (function() { 'use strict'; let $a = $("<a>强化</a>").css("color", "red"); $a.on('click', function(e) { let pageData = request($(this).data("href")), result = /Lv[0-9]/.exec(pageData)[0] + " " + /祝福值:[\d]+\/[\d]+/.exec(pageData) + " " + /剩余:[\d]+/.exec(pageData)[0] + " " + /消耗:[^祝]+[\d]+/.exec(pageData)[0], resultID = "result" + $(this).attr("id").replace(/x/g, ""); $("#"+resultID).remove(); $(this).next().after(`<span id="${resultID}">${result}</span>`); }); let $a2 = $("<a>强化10次</a>").css("color", "red"); $a2.on('click', function(e) { let pageData = request($(this).data("href")), result = /Lv[0-9]/.exec(pageData)[0] + " " + /祝福值:[\d]+\/[\d]+/.exec(pageData) + " " + /剩余:[\d]+/.exec(pageData)[0] + " " + /消耗:[^祝]+[\d]+/.exec(pageData)[0], resultID = "result" + $(this).attr("id").replace(/x/g, ""); $("#"+resultID).remove(); $(this).after(`<span id="${resultID}">${result}</span>`); }); let need2reload = false; $("a").each(function(index){ let $this = $(this); if($this.text() == "强化"){ let url = $this.attr("href").replace("subtype=3", "subtype=5"), $aClone = $a.clone(true), $a2Clone = $a2.clone(true); $aClone.attr("data-href", url).attr("id", "x"+index); $a2Clone.attr("data-href", url + "×=10").attr("id", "xx"+index); $this.after($a2Clone).after($aClone); $this.text("."); }else if($this.text() == "开启"){ request($this.attr("href")); need2reload = true; }; }); if(need2reload) window.location.reload(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址