forked from TransparentLC/WechatMomentScreenshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fuckWechat.js
16 lines (15 loc) · 1.17 KB
/
fuckWechat.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(function (document) {
var div = document.createElement('div');
div.setAttribute('id', 'fuckWechat');
document.querySelector('.mdui-appbar').style.filter = 'blur(2px)';
document.querySelector('.mdui-container').style.filter = 'blur(2px)';
div.style.cssText = 'position:fixed;left:0;top:0;width:100%;height:100%;box-sizing:border-box;padding:18px;font-size:16px;line-height:1.5em;background-color:rgba(255,255,255,.9);z-index:2147483647;display:flex;justify-content:center;align-items:center'
div.innerHTML = ''
+ '<div>'
+ '<h1>( ^ω^)</h1>'
+ '<p>本工具不建议在微信中使用。</p>'
+ '<p><button style="width:100%;background-color:#175199;color:#fff;border:none;border-radius:4px;height:2em" onclick="document.body.removeChild(document.getElementById(\'fuckWechat\'));document.querySelector(\'.mdui-appbar\').style.filter=\'\';document.querySelector(\'.mdui-container\').style.filter=\'\';">继续</button></p>'
+ '<p style="text-align:center;color:#bbb;font-size:14px">在微信以外的环境打开此页面,不会出现此遮罩层</p>'
+ '</div>';
document.body.append(div);
})(document)