在本地编辑网站
我想我在某处读到您可以在计算机上本地编辑其他网站的样式表。例如,我想编辑 Facebook 的样式表以适应我自己的观点。我怎样才能做到这一点?我是否可以编辑原始样式表 CSS 并告诉我的浏览器在本地读取样式表而不是原始样式表?
I think I read somewhere that you can edit the stylesheet of other websites locally on your computer. For example I'd like to edit the stylesheet of Facebook just for my own view. How can I do that? Is there anyway I can edit the original stylesheet CSS and tell my browser to read one locally instead of the original one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我使用 Chrome 的 Stylebot 扩展程序将自定义 CSS 规则应用于特定网站。它有一个很棒的 UI,您可以使用它来更改页面的某些部分,而无需实际编写 CSS。如果你愿意的话,你可以编写原始 CSS。
例如,我用它来隐藏 YouTube 上包含评论的
,这样我就再也不用看到白痴之间毫无意义的争论了。
I use the Stylebot extension for Chrome to apply custom CSS rules to specific websites. It has a great UI you can use to alter bits of the page without actually having to write CSS. You can write raw CSS if you want to though.
For example, I use it to hide the
<div>
containing comments on YouTube, so I never have to see pointless arguments between morons.您可以使用 Firefox 的 Firebug 插件。这允许您在看到样式时对其进行编辑。如此有价值的开发工具,我强烈推荐它。我每天都使用它,毫无疑问其他开发人员也这样做。
Google Chrome/Safari 也有一个很棒的 Web 开发工具,提供类似的功能。
You can use the Firebug plugin for Firefox. That allows you to edit the styles as you see them. Such a valuable development tool, I couldn't recommend it highly enough. I use it every day and no doubt other developers do too.
Google Chrome/Safari also has a great web development tool which offers similar features.
您可以执行特定于浏览器的操作(例如,对于 Opera),或者使用代理服务器重写与特定模式匹配的请求(例如 Charles)。
Either you do something browser specific (e.g. for Opera) or you use a proxy server that lets you rewrite requests that match a specific pattern (e.g. Charles).
Firebug 会很好地为你做这件事。
这是一个供您下载到 Firefox 的链接。
http://getfirebug.com/
Firebug will do that nicely for you.
Here is a link for you to download to firefox.
http://getfirebug.com/
有些浏览器允许您编写自己的样式表,但它们是特定于浏览器的,我不知道其中是否包含 FF。不过我知道你可以在 Firefox 中设置首选项。以下是有关如何在 Opera 和 IE 中使用您自己的样式表的链接
http://blackwidows.co.uk/clients/imp-guide/accessify/local-style.php
Some browsers allow you to write your own stylesheet but they are browser specific and I don't know if FF is included in them. However I do know that you can setup preferences in firefox. Below is a link on how to use your own stylesheet for Opera and IE
http://blackwidows.co.uk/clients/imp-guide/accessify/local-style.php