Code Monkey home page Code Monkey logo

darkmode's People

Contributors

maboloshi avatar syhyz1990 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

darkmode's Issues

视频全屏后还原出现问题

我发现在观看YouTube的视频时候,没有开启夜间模式,当视频全屏后再退出就会自动变成夜间模式,但是插件切换图标还是没有变。希望下个版本能解决这个问题,谢谢

插件bug

插件只对网站首页有效,例如b站首页选择了不适用黑暗模式,但点进一个视频仍然会启用黑暗模式

不支持框架

应该是不支持iframe, 典型代表: 登录后的蓝奏云

【改进】取消标签页间同步

例如github, google等网站自带暗色主题,如果同时打开多个页面,可能导致其中自带暗色主题的网页反而变成亮色

夜间模式助手

在Tampermonkey 4.13版本中,在Chrome中安装插件后没有响应

虎牙

虎牙直播内容会反色

Twitter

Twitter打開夜間模式頭像不顯示。

github.com 下某些条件下无法添加图标

主要是GitHub更换了动态载入模式, 有些页面跳转时,重建BODY.
复现过程:
1.页面在某个仓库页(提前刷新页面) 如:https://github.com/syhyz1990/darkmode/
2. 点击右上角个人图标下拉中的Your profile 进入 个人资料页
此时, 个人资料页上 GoTop 图标没有被添加上.

目前, 我的做法为

  // 监视最顶层,仅当新增 BODY 时,添加图标
  new window.MutationObserver(function(mutations) {
      for(let mutation of mutations) {
          if (mutation.addedNodes.length > 0) { // 仅当节点增加
              for (const node of mutation.addedNodes){
                  if (node.nodeName === 'BODY') { // 增加的节点为 BODY
                      do something;
                      return;
                  }
              }
          }
      }
  }).observe(document.documentElement, {childList: true});

可否支持通配符

就像*.google.com就可以将所有的google的网站拉入黑名单,
还有192.168..:*就可以把局域网地址拉入黑名单
能否实现呢

建议可自定义按钮位置

现在的位置比较尴尬,会挡住部分站点诸如”回到顶部“之类的按钮,比如本脚本官方网站……

问题请教

想问下作者,你的图片是如何上传到github的?我看到url是这样的https://camo.githubusercontent.com 。 我github上的图片都会图裂加载不出来,你这个域名下不会出现这个问题

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.