Greasy Fork is available in English.
将飞书 applink 链接自动跳转到 oa.feishu.cn 网页版
// ==UserScript==
// @name 飞书网页链接自动跳转
// @namespace http://tampermonkey.net/
// @version 1.0
// @description 将飞书 applink 链接自动跳转到 oa.feishu.cn 网页版
// @author Xion.Ai
// @match https://applink.feishu.cn/client/web_app/open*
// @grant none
// @run-at document-start
// ==/UserScript==
(function () {
'use strict';
// 获取当前 URL 参数
const params = new URLSearchParams(window.location.search);
// 获取 path 参数
const path = params.get('path');
if (path) {
// 解码 path 参数
const decodedPath = decodeURIComponent(path);
// 构建新的跳转 URL
const newUrl = `https://oa.feishu.cn${decodedPath}`;
console.log(`检测到飞书 applink,正在跳转至: ${newUrl}`);
// 执行跳转
window.location.replace(newUrl);
}
})();