如何在我的Firefox浏览器中将CSS样式表应用于所有页面视图

时间:2022-05-31 21:14:22

I would like to apply a CSS stylesheet to all page views in a Firefox browser using a menu option and be able to toggle this when required. (The functionality I want exists in IE: Tools | Internet Options | Accessibility | Format Documents Using my Stylesheet (although I think this may affect pages outside of simply IE).

我想使用菜单选项在Firefox浏览器中将CSS样式表应用于所有页面视图,并且能够在需要时切换它。 (我想要的功能存在于IE中:工具| Internet选项|辅助功能|格式文档使用我的样式表(虽然我认为这可能会影响IE之外的页面)。

3 个解决方案

#1


you can use Stylish, you can define global styles in firefox and ability to switch it on and off fast from Firefox.

你可以使用Stylish,你可以在firefox中定义全局样式,并能够从Firefox快速打开和关闭它。

Usage page.

Global styles, you can see code and how it is done.

全局样式,您可以看到代码及其完成方式。

#2


You could use the file userContent.css lying within the directory named chrome in your Mozilla Firefox profiles directory. There is also an example file named userContent-example.css.

您可以使用位于Mozilla Firefox配置文件目录中名为chrome的目录中的文件userContent.css。还有一个名为userContent-example.css的示例文件。

#3


There is another Firefox addon called Platypus which which adds a toolbar for editing site styles. It does require you to install Grease Monkey.

还有另一个名为Platypus的Firefox插件,它添加了一个用于编辑网站样式的工具栏。它确实需要你安装Grease Monkey。

I just installed Stylish and my first impression is that is nicer than Platypus, especially when it comes to sharing your styles with others. But I'll reverse my judgment as to which I think is better when I have more time to compare them. :)

我刚安装了Stylish,我的第一印象是它比Platypus更好,特别是在与他人分享你的风格时。但是当我有更多的时间来比较它时,我会反驳我的判断。 :)

#1


you can use Stylish, you can define global styles in firefox and ability to switch it on and off fast from Firefox.

你可以使用Stylish,你可以在firefox中定义全局样式,并能够从Firefox快速打开和关闭它。

Usage page.

Global styles, you can see code and how it is done.

全局样式,您可以看到代码及其完成方式。

#2


You could use the file userContent.css lying within the directory named chrome in your Mozilla Firefox profiles directory. There is also an example file named userContent-example.css.

您可以使用位于Mozilla Firefox配置文件目录中名为chrome的目录中的文件userContent.css。还有一个名为userContent-example.css的示例文件。

#3


There is another Firefox addon called Platypus which which adds a toolbar for editing site styles. It does require you to install Grease Monkey.

还有另一个名为Platypus的Firefox插件,它添加了一个用于编辑网站样式的工具栏。它确实需要你安装Grease Monkey。

I just installed Stylish and my first impression is that is nicer than Platypus, especially when it comes to sharing your styles with others. But I'll reverse my judgment as to which I think is better when I have more time to compare them. :)

我刚安装了Stylish,我的第一印象是它比Platypus更好,特别是在与他人分享你的风格时。但是当我有更多的时间来比较它时,我会反驳我的判断。 :)