您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
在ai-bot.cn跳转地址转换
当前为
"use strict"; // ==UserScript== // @name AI-Bot跳转地址转换 // @namespace https://raw.githubusercontent.com/Fog3211/tampermonkey/gh-pages/ai-bot-link.js // @version 0.0.2 // @description 在ai-bot.cn跳转地址转换 // @author Fog3211 // @match https://ai-bot.cn/* // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; const links = document.querySelectorAll('a.card'); links.forEach(link => { const targetUrl = link.getAttribute('data-url'); const href = link.getAttribute('href'); if (targetUrl && href) { link.setAttribute('href', targetUrl); link.setAttribute('data-href', href); } }); })();