移除链接下划线

移除所有网站上的链接下划线,并动态处理新链接

当前为 2024-08-22 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Remove Link Underlines
// @name:zh-CN   移除链接下划线
// @name:zh-TW   移除链接下划线
// @name:fr      Supprimer les soulignements de liens
// @name:ja      リンクの下线を削除
// @name:de      Links-Unterstreichungen entfernen
// @name:ko      링크 밑줄 제거
// @name:vi      Xóa gạch chân liên kết
// @name:ar      إزالة التسطير من الروابط
// @name:hi      लिंक रेखांकन हटाएं
// @name:es      Eliminar subrayados de enlaces
// @namespace    https://greatest.deepsurf.us/users/1169082/
// @version 1.2.0.36
// @description  Remove underlines from all links on any website and dynamically handle new links
// @description:zh-CN 移除所有网站上的链接下划线,并动态处理新链接
// @description:zh-TW 移除所有网站上的连结底线,并动态处理新连结
// @description:fr Supprimer les soulignements de tous les liens sur n'importe quel site Web et gérer dynamiquement les nouveaux liens
// @description:ja 任意のWebサイト上のすべてのリンクの下线を削除し、新しいリンクを动的に処理する
// @description:de Entfernen Sie die Unterstreichungen aller Links auf jeder Website und behandeln Sie neue Links dynamisch
// @description:ko 모든 웹사이트에서 모든 링크의 밑줄을 제거하고 새 링크를 동적으로 처리합니다
// @description:vi Xóa gạch chân khỏi tất cả các liên kết trên bất kỳ trang web nào và xử lý động các liên kết mới
// @description:ar إزالة التسطير من جميع الروابط على أي موقع ويب والتعامل ديناميكيًا مع الروابط الجديدة
// @description:hi किसी भी वेबसाइट पर सभी लिंक से रेखांकन हटाएं और नए लिंक को गतिशील रूप से संभालें
// @description:es Eliminar subrayados de todos los enlaces en cualquier sitio web y manejar dinámicamente nuevos enlaces
// @author       人民的勤务员<[email protected]>
// @match        *://*/*
// @run-at document-body
// @license MIT
// @icon          https://github.com/ChinaGodMan/UserScripts/raw/main/docs/icon/Scripts%20Icons/icons8-Underlines-96.png
// @supportURL              https://github.com/ChinaGodMan/UserScripts/issues
// @homepageURL   https://github.com/ChinaGodMan/UserScripts
// ==/UserScript==

//去你妈的下划线。
//2024-06-23 11:23 人民的勤务员 
//2024-07-08 08:33 人民的勤务员 改为CSS
(function () {
    'use strict'

    // 创建一个样式元素
    var style = document.createElement('style')
    style.type = 'text/css'
    style.innerHTML = `
        a {
            text-decoration: none !important;
        }
    `

    // 将样式元素添加到头部
    document.head.appendChild(style)
})()