您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
手机端使用X浏览器取消超链接的下划线
// ==UserScript== // @name 取消超链接的下划线 // @namespace http://tampermonkey.net/ // @version 0.2.0 // @description 手机端使用X浏览器取消超链接的下划线 // @author zhn // @match *://dszh.xyz/list.php?* // @icon https://www.google.com/s2/favicons?sz=64&domain=dszh.org // @grant GM_addStyle // @grant GM_addElement // ==/UserScript== (function() { 'use strict'; // 添加自定义CSS //GM_addStyle(` // a.custom-link { // text-decoration: none !important; /* 去除下划线 */ // } // a.style.textdecoration = 'none !important'; //`); window.onload=function(){//do something var lists = document.getElementsByTagName("a"); for(var i = 0;i < lists.length;i++) { //lists[i].classList.add('custom-link'); //GM_addStyle(lists[i]+'{text-decoration: none !important}') lists[i].style.textDecoration = 'none'; } } })();