firefox - 如何删除 Firefox 中的 X 按钮?

我转到我的配置文件设置并添加了一个名为“chrome”的文件夹和一个名为 userChrome.css 的文件。

我包含了这段代码:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#tabbrowser-tabs .tabbrowser-tab .tab-close-button { display:none!important; }

我重新启动了我的 Firefox 实例,它仍然在选项卡中显示 X 关闭按钮。

最佳答案

Note: Firefox 69 and new versions will not support userChrome.css and userContent.css by default unless preference is set by the user.

要使用 userChrome.css 请按照以下步骤操作:

  • 首先在url/地址栏输入about:config
  • 然后搜索名为 toolkit.legacyUserProfileCustomizations.stylesheets 的属性
  • 将其设置为True 并重新启动 firefox

https://stackoverflow.com/questions/60963449/

相关文章:

node.js - 如何与 nx 并行运行 express 和 angular?

scala - 为什么zio的putStrLn没有输出

regex - PowerShell 从脚本中删除所有注释

react-native - 在 React Native Web 的情况下自定义 react-na

sql - Postgres : How do I extract year and month f

spring-boot - 带有 Spring 的 GraphQL-java - 解析器 vd da

jenkins - 在airflow中的特定时间运行任务

spring-boot - Spring WebFlux Reactive 和 Kotlin Cor

java - 从 JSONObject 中删除除一个之外的所有键

angular - 使用 ngrx 和选择器等待资源加载到守卫中