您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
当当前 URL 为指定 URL 时,在控制台打印消息
当前为
// ==UserScript== // @name 检测特定 URL(仅执行一次) // @namespace http://tampermonkey.net/ // @version 1.0.1 // @description 当当前 URL 为指定 URL 时,在控制台打印消息 // @author You // @match *://*/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const targetUrl = 'http://localhost:9201/doc.html#/%E9%A1%B9%E7%9B%AE%E6%80%BB%E8%A7%88/%E7%BB%BF%E8%89%B2%E9%80%9A%E9%81%93/transitionUsingGET'; function checkUrl() { if (window.location.href === targetUrl) { console.log(window.location.href); console.log('检测到了'); } } checkUrl(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址