为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

No option to Uncheck Underline Links

  • 7 个回答
  • 16 人有此问题
  • 377 次查看
  • 最后回复者为 cor-el

more options

Just updated to the latest firefox version 119, and noticed that the url links are now all underlined again. Checked the support page that says it can be undone in settings, but when I opened up to the said setting page, there's no option to uncheck underline links. Where else can underline links be disabled?

Just updated to the latest firefox version 119, and noticed that the url links are now all underlined again. Checked the support page that says it can be undone in settings, but when I opened up to the said setting page, there's no option to uncheck underline links. Where else can underline links be disabled?
已附加屏幕截图

被采纳的解决方案

It is still there in ua.css

:any-link {
  cursor: pointer;
  text-decoration: underline;
}

You do not want to force it for all cases like SVG links.

a:any-link {
  /* We don't want SVG link to be underlined */
  text-decoration: none;
}

See also:

  • 1664278 - Feature request: “Always underline links in text” option in Firefox
定位到答案原位置 👍 0

所有回复 (7)

more options

This was removed by Bug 1853323, apparently it didn't work consistently anyway.

Equivalent userContent.css:

*|*:any-link { 
  text-decoration: none; 
}
more options

选择的解决方案

It is still there in ua.css

:any-link {
  cursor: pointer;
  text-decoration: underline;
}

You do not want to force it for all cases like SVG links.

a:any-link {
  /* We don't want SVG link to be underlined */
  text-decoration: none;
}

See also:

  • 1664278 - Feature request: “Always underline links in text” option in Firefox
more options

Thanks zeroknight and cor-el.

The solution presented by both of you solved the issue through CSS.

more options

To elaborate on cor-el's solution, for those who have no experience with the userContent.css, here is how you now change your preference to not underline links by default:

Go to "about:config" Toggle "toolkit.legacyUserProfileCustomizations.stylesheets" to "true"

Go to "about:support" Look for "Profile Folder" Click "Show in Finder" (on Mac), "Show Folder" (Windows), "Open Directory" (Linux) or "Open Containing Folder".

In that profile folder, look for "chrome" folder, create if not present

In "chrome" folder, edit or create "userContent.css" file, put this in there:

 *|*:any-link {
   text-decoration: none;
 }

Restart Firefox

由Scarabaeus23于修改

more options

I need more help. Where do I find about:config? I am using MacOS 13.5.2 and Firefox 119.0.1. And why is it so hard to get rid of the underlining? The ability to disable link underlining is why I first started using Firefox many years ago. Thank you.

more options

The easiest way is to install the extension "Default links not to be underlined" made by a Firefox developer.

more options

Note that Firefox 120 will have a pref to force underlining of links and Firefox 121 exposes this pref in "Settings -> General -> Browsing: Always underline links", so make sure you do not enable this setting.