您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
加载jquery脚本
当前为
// ==UserScript== // @name suizhikuo-load-jquery // @namespace http://tampermonkey.net/ // @version 2024-04-09 // @description 加载jquery脚本 // @author 随智阔 // @match *://*/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @require https://code.jquery.com/jquery-3.7.1.js // @license MIT // ==/UserScript== function confirmDialog(message, callback) { $("<div>" + message + "</div>").dialog({ resizable: false, height: "auto", width: 400, modal: true, title: "确认框", buttons: { "确认": function () { $(this).dialog("close"); callback(); }, "取消": function () { $(this).dialog("close"); } } }); }; (function () { 'use strict'; // debugger; console.log("篡改猴(Tampermonkey)脚本 ---> 运行"); console.log("篡改猴(Tampermonkey)脚本 --->j query-3.7.1.js"); // 加载一个弹框 confirmDialog("确定要执行此操作吗?", function () { // 用户点击确认的回调函数 alert("操作已确认"); }); })();