主 题:t.me 挂掉了,来个油猴脚本自动替换网页中的 t.me 为 telegram.me
发 布 者:Tokin
标签分类: 日常
时 间:2026-07-14 17:03:15
内容预览:RT,t.me 今天挂掉了,导致很多老哥的 tg 联系方式的链接、群组链接都无法直接打开了,安装这个脚本,可以把页面中所有 t.me 链接替换为 telegram.me,省心省力 // ==UserScript==// @name Telegram 域名替换器 (t.me -%26gt%3b telegram.me)// @namespace http://tampermonkey.net/// @version 1.0// @description 自动将网页中的 t.me 链接替换为 telegram.me// @author YourName// @match *://*/*// @grant none// @run-at document-start// ==/UserScript==(function() { 'use strict'; // 核心替换逻辑 function replaceLinks() { // 查找所有以 https://t.me/ 或 http://t.me/ 开头的链接 const links = document.querySelectorAll('a[href*="t.me"]'); links.forEach(link =%26gt%3b { if (link.href.includes('://t.me/')) { link.href = link.href.replace('://t.me/', '://telegram.me/'); // 如果标签文本本身也是网址,同步修改文本显示
直达链接: https://www.nodeseek.com/post-821443-1
发 布 者:Tokin
标签分类: 日常
时 间:2026-07-14 17:03:15
内容预览:RT,t.me 今天挂掉了,导致很多老哥的 tg 联系方式的链接、群组链接都无法直接打开了,安装这个脚本,可以把页面中所有 t.me 链接替换为 telegram.me,省心省力 // ==UserScript==// @name Telegram 域名替换器 (t.me -%26gt%3b telegram.me)// @namespace http://tampermonkey.net/// @version 1.0// @description 自动将网页中的 t.me 链接替换为 telegram.me// @author YourName// @match *://*/*// @grant none// @run-at document-start// ==/UserScript==(function() { 'use strict'; // 核心替换逻辑 function replaceLinks() { // 查找所有以 https://t.me/ 或 http://t.me/ 开头的链接 const links = document.querySelectorAll('a[href*="t.me"]'); links.forEach(link =%26gt%3b { if (link.href.includes('://t.me/')) { link.href = link.href.replace('://t.me/', '://telegram.me/'); // 如果标签文本本身也是网址,同步修改文本显示
直达链接: https://www.nodeseek.com/post-821443-1