即刻移动端自动跳转Web端

自动将即刻移动端链接转换为Web端链接

// ==UserScript==
// @name         即刻移动端自动跳转Web端
// @namespace    foolgry
// @version      0.4
// @description  自动将即刻移动端链接转换为Web端链接
// @author       Your Name
// @match        https://m.okjike.com/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    // 获取当前页面的URL
    var currentUrl = window.location.href;

    // 检查是否为移动端即刻链接
    if (currentUrl.startsWith("https://m.okjike.com/reposts")) {
        // 跳转到Web端链接
        window.location.href = currentUrl.replace("m.okjike.com/reposts", "web.okjike.com/repost");
    } else if (currentUrl.startsWith("https://m.okjike.com/originalPosts")) {
        window.location.href = currentUrl.replace("m.okjike.com/originalPosts", "web.okjike.com/originalPost");
    }
})();

QingJ © 2025

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