User-Agent Switcher for Chrome

Switch user-agent to pan.baidu.com

当前为 2025-03-25 提交的版本,查看 最新版本

// ==UserScript==
// @name         User-Agent Switcher for Chrome
// @license MIT
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Switch user-agent to pan.baidu.com
// @author       You
// @match        *://*/*  // Change this to the website URL where you want to apply the switch
// @grant        none
// ==/UserScript==
 
(function() {
    'use strict';
    
    // Define the Google Chrome user-agent string (Windows version)
    const chromeUserAgent = "pan.naidu.com";
    
    // Change the user-agent for the current page
    Object.defineProperty(navigator, 'userAgent', {
        get: function() { return chromeUserAgent; }
    });
    
    console.log("User-Agent has been switched to Google Chrome!");
})();

QingJ © 2025

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