您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
I try to take over the world!
当前为
// ==UserScript== // @name 支持私人需求功能定制开发。微信公众号编辑器模板一键导入,支持各大微信编辑器平台。通用于各大自媒体图文平台,包括但不限于微信公众号,B站,bilibili,今日头条,抖音,西瓜视频,知乎等等…… // @namespace https://www.1024net.tech/ // @namespace https://www.lovemake.love/ // @version 2024.01.21.095649 // @description I try to take over the world! // @author Kay // @match https://mp.weixin.qq.com/* // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js // @require https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.11/clipboard.min.js // @icon https://aimg8.dlssyht.cn/u/1533835/ueditor/image/767/1533835/1633159205592221.png // @grant GM_xmlhttpRequest // @grant GM_setValue // @grant GM_getValue // @connect gitee.com // @connect gitlab.com // @connect * // ==/UserScript== (function () { 'use strict'; // Your code here... GM_xmlhttpRequest({ method: "GET", url: 'https://baidu.com', onload: function (response) { let webText = response.responseText; GM_setValue("gethtml", webText); } }); const url = location.href; let logo = "https://aimg8.dlssyht.cn/u/1533835/ueditor/image/767/1533835/1696746563185428.png"; $("body").append("<div id='divx-wrapper'></div><div id='divx'><h1 id='h1x'>请输入订单编号</h1><input id='orderx'><br/><p><span style='color:red;'>*</span>温馨提示:订单编号首次使用后24小时后失效,请于24小时内保存好草稿箱。</p><p id='errx'></p><button id='buttonx1'>确认</button><button id='buttonx2'>取消</button></div>"); $("body").append("<style id='stylex'>"); $("#divx-wrapper,#divx").css("display", "none"); let style = ` #divx-wrapper {width: 100vw;height: 100vh;background-color: rgba(0,0,0,0.5);z-index: 9999;position: fixed;top: 0;left: 0;} #divx {width: 800px;height: 300px;margin: auto;background-color: #fff;z-index: 10000;position: absolute;top: 0;left: 0;bottom: 0;right: 0;border-radius: 10px;text-align: center;} #h1x{margin: 30px auto 20px auto;} #orderx{width: 80%;height: 30px;border-radius: 3px;border-width: 1px;margin-bottom: 10px;} #errx{min-height: 22px;margin: 10px auto 30px auto;color: red;} #buttonx1,#buttonx2{width: 100px;height: 40px;background-color: #07c160;color: white;border-radius: 5px;margin-right: 20px;} #buttonx2{margin-right: 0;} `; $("#stylex").html(style); if (url.indexOf("mp.weixin.qq.com") !== -1) { $("#js_toolbar_0").append("<div id='edui0x' class='edui-box edui-button edui-default' data-tooltip='插入模板' style='max-height: 22px;margin:auto 4px;display:inline-block;'><img src='' style='max-width: 18px; margin-top: 2px;'></div>"); $("#edui0x img").attr("src", logo); $("#edui0x").click(function () { $("#divx-wrapper,#divx").css("display", "block"); $("#orderx").val(""); $("#errx").html(""); $("#orderx").click(function () { $("#errx").html(""); }); $("#buttonx1").click(function () { let a = $("#orderx").val(); let b = GM_getValue("gethtml"); let c = Date.now(); let d = c - parseInt(a.split("T")[1]); if (b.indexOf("T") != 0) { $("#errx").html('查询出错,请联系客服!<br>QQ: 626528275'); } else { if (a == "T10000") { let templatehtml = "<img src='https://aimg8.dlssyht.cn/u/1533835/ueditor/image/767/1533835/1700115747263998.png'>"; $("#ueditor_0").contents().find("body").html(templatehtml); $("#edui1_contentplaceholder").css("display", "none"); $("#divx-wrapper,#divx").css("display", "none"); GM_deleteValue("gethtml"); } else if (b.indexOf(a) !== -1 && d < 86400000) { let templatehtml = $.trim(b.split(a)[1]); $("#ueditor_0").contents().find("body").html(templatehtml); $("#edui1_contentplaceholder").css("display", "none"); $("#divx-wrapper,#divx").css("display", "none"); GM_deleteValue("gethtml"); } else { $("#errx").html("对不起,您输入的订单编号无效,请联系客服!<br>QQ: 3092767519"); GM_deleteValue("gethtml"); } } }); $("#buttonx2").click(function () { $("#divx-wrapper,#divx").css("display", "none"); }); }); } })(); /*2024.01.21.095649 - Line : 90*/