您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
telegram code block 中的 url 轉為超連結
当前为
// ==UserScript== // @name telegram 速連2 // @namespace https://tampermonkey.net/ // @version 1.0 // @description telegram code block 中的 url 轉為超連結 // @author Bee10301 // @match https://web.telegram.org/a/* // @icon https://www.google.com/s2/favicons?sz=64&domain=web.telegram.org // @grant none // @license GNU GPLv3 // ==/UserScript== /*jshint esversion: 6 */ (function() { 'use strict'; window.onload = () => { document.addEventListener("click", (event) => { const target = event.target; if (target.matches("code.text-entity-code.clickable")&& target.innerHTML.match(/(https?:\/\/[^\s]+)/)[0]) { window.open(`${target.innerHTML}`, "_blank"); } }); }; })();