Universal Dynamic URL Redirector

Redirect from specific URL to another while maintaining parameters, excluding mobile=yes

目前为 2023-12-11 提交的版本。查看 最新版本

// ==UserScript==
// @name         Universal Dynamic URL Redirector
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  Redirect from specific URL to another while maintaining parameters, excluding mobile=yes
// @author       You
// @match        https://47.100.65.202/forum.php*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    var currentUrl = window.location.href;
    var newUrl = currentUrl.replace(/47\.100\.65\.202/, 'www.flyert.com');
    newUrl = newUrl.replace(/&mobile=yes/, ''); // Removes '&mobile=yes' if present
    window.location.href = newUrl;
})();

QingJ © 2025

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