添加水印层,修复联想显示器,灰色色值显示问题
当前为
// ==UserScript==
// @name mask fix screen
// @namespace https://github.com/jackdizhu
// @version 0.4.1
// @description 添加水印层,修复联想显示器,灰色色值显示问题
// @description Fix screen gray display problem
// @author jackdizhu
// @match *
// @include *
// @grant none
// ==/UserScript==
(function() {
'use strict';
let isTop = window.top === window
if (!isTop) {
return false
}
let $div = document.createElement('div')
$div.style = `
position: fixed;
pointer-events: none;
width: 100%;
height: 100%;
left: 0;
top: 0;
background: #eee;
opacity: 0.1;
z-index: 999999999;
`
document.body.appendChild($div)
})();