检测特定URL1428

当当前 URL 为指定 URL 时,在控制台打印消息

// ==UserScript==
// @name         检测特定URL1428
// @namespace    http://tampermonkey.net/
// @version      1.0.3
// @description  当当前 URL 为指定 URL 时,在控制台打印消息
// @author       脚大江山稳
// @match        *://*/*
// @grant        none
// @license        MIT
// ==/UserScript==

(function() {
    'use strict';
    const targetUrl = 'APP_Z82AEPBKQ1064V6QHJEO';
    console.log(window.location.href);
    function checkUrl() {
        if (window.location.href.includes (targetUrl)) {
             console.log(window.location.href);
            console.log('检测到了');
            var style = document.createElement('style');
            style.type = 'text/css';
            style.innerHTML = '.vc-text.fn-hide { display: inherit !important; }';
            document.head.appendChild(style);
        }
    }

    checkUrl();
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址