mask fix screen

添加水印层,修复联想显示器,灰色色值显示问题

目前為 2020-07-09 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name mask fix screen
  3. // @namespace https://github.com/jackdizhu
  4. // @version 0.4.0
  5. // @description 添加水印层,修复联想显示器,灰色色值显示问题
  6. // @description Fix screen gray display problem
  7. // @author jackdizhu
  8. // @match *
  9. // @include *
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. let isTOP = window.top === window
  16. if (!isTop) {
  17. return false
  18. }
  19. let $div = document.createElement('div')
  20. $div.style = `
  21. position: fixed;
  22. pointer-events: none;
  23. width: 100%;
  24. height: 100%;
  25. left: 0;
  26. top: 0;
  27. background: #eee;
  28. opacity: 0.1;
  29. z-index: 999999999;
  30. `
  31. document.body.appendChild($div)
  32. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址