google-chrome - 我可以在 Chrome 中为 'view-source' 设置主题吗?

标签 google-chrome chromium view-source

我为开发人员工具安装了主题,并且还想让我的“查看源”也变暗。

最佳答案

使用以下代码创建书签:

javascript:(function(){ var h=document.getElementsByTagName('head')[0],s=document.createElement('style');s.setAttribute('type','text/css'); s.appendChild(document.createTextNode('html{-webkit-filter:invert(100%) hue-rotate(180deg) contrast(70%) !important; background: #fff;} .line-content {background-color: #fefefe;}'));h.appendChild(s); })()

然后在您想要变暗的任何页面上单击此书签

关于google-chrome - 我可以在 Chrome 中为 'view-source' 设置主题吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25546055/

相关文章:

java - 在 Android 浏览器缓存中注入(inject)项目

ubuntu - 在 ubuntu trusty 上配置 dart content_shell

javascript - 如何使 AngularJs 内容在 Viewsource 中可见

batch-file - 只允许一个 Chromium 应用程序实例

javascript - 使用 javascript 或 jquery 在 View 源上添加空白区域

java - 如何从网页下载Java小程序?

javascript - "window.location.hash = location.hash"在 Webkit(Safari 和 Chrome)中不起作用

css - 修复了 Google Chrome 中定位的 header "jumps"

javascript - 在 puppeteer 请求中使用不同的 ip 地址