分享

迄今为止感觉最棒的夜间模式样式。

 如颖随行 2017-01-26
就不截图了,自己添加到stylish试用很方便,我觉得基本上每个人都会觉得这是最棒的夜间模式吧,opacity后面的数值是不透明度,自己可以调节。

夜间模式
  1. browser[type="content-primary"] {background-color:#787878 !important;}
    html{opacity:0.9!important;background:#787878!important;}
    body{background:white!important;}
复制代码
另外推荐调用stylish样式的firegestures手势配合使用。

先安装这个样式显示id的样式
  1. @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
  2. @-moz-document url(chrome://stylish/content/manage-standalone.xul){
  3. richlistitem:before{content: attr(style-id)!important;}
  4. }

  5. @-moz-document url(about:addons){
  6. richlistitem[type='userstyle']:before{content: attr(value)!important;}
  7. }
复制代码
把下面的手势脚本加到firegestues自定义自己习惯的手势就ok了。
  1. (function(){
  2.     var id = [样式id];
  3.     var service = Components.classes["@userstyles.org/style;1"].getService(Components.interfaces.stylishStyle)
  4.     for (var i=0; i < id.length; i++){
  5.         var style = service.find(id[i], service.REGISTER_STYLE_ON_CHANGE);
  6.         style.enabled = !style.enabled;
  7.         style.save();
  8.     }
  9. })();
复制代码

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多