我为开发人员工具安装了主题,并且还想让我的“查看源”也变暗。
最佳答案
使用以下代码创建书签:
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/