您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically clicks the "open this link in your browser"
// ==UserScript== // @name Slack auto-open link in browser // @namespace Violentmonkey Scripts // @version 1.0 // @description Automatically clicks the "open this link in your browser" // link in Slack/archives webpages // @author AdrianSkar // @match *://*.slack.com/archives/* // @grant none // ==/UserScript== (function () { 'use strict'; function clickLink() { const links = document.querySelectorAll('a'); // Find target link by its text content for (let link of links) { if (link.textContent.includes("open this link in your browser")) { link.click(); console.log('Auto-clicked link:', link.href); break; // Stop after clicking the first matching link } } } window.onload = function () { setTimeout(clickLink, 100); // Delay execution by Xms }; // Optionally, if content might load dynamically even after window.onload, // you can set an interval to attempt clicking periodically // setInterval(clickLink, 5000); // Attempt to click every 5 seconds })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址