diff --git a/README.md b/README.md index 545d240..8fd660f 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,12 @@ ### 更新记录 +#### 2019.12.5 + +~~解决了一些已知问题。~~ + +支持选择生成 7.0 以上版本白色界面的截图。 + #### 2019.6.8 还是根据 [Issue #4](https://github.com/TransparentLC/WechatMomentScreenshot/issues/4),增加了在生成的截图中设定评论的功能~ฅ•̀∀•́ฅ @@ -26,7 +32,7 @@ ~~也欢迎请小透明喝肥宅快乐水(\*´∀`)~~ -#### 2019.5.14 +#### 2019.5.14 新功能:输入微信公众号文章链接,自动获取文章标题和封面。 diff --git a/fuckWechat.js b/fuckWechat.js index e55102e..f6cbe03 100644 --- a/fuckWechat.js +++ b/fuckWechat.js @@ -4,14 +4,26 @@ if (navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1) { var div = document.createElement('div'); div.setAttribute('id', 'fuckWechat'); - div.style.cssText = 'position: fixed; left: 0; top: 0; width: 100%; height: 100%; box-sizing: border-box; padding: 18px; font-size: 18px; line-height: 1.5em; background-color: #fff; z-index: 2147483647; display: flex; justify-content: center; align-items: center;' + 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,.6); z-index: 2147483647; display: flex; justify-content: center; align-items: center;' div.innerHTML = '' + '
我们刚刚做了一个非常艰难的决定,这个网页不允许使用微信内置浏览器打开。为什么这样做?
' - + '请点击右上角,选择“在浏览器打开”。
' + + '' + + '因为微信是个:
' + + '……的辣鸡软件,所以我就加上了这个遮罩层把它批判一番 : )
' + + '' + + '使用浏览器打开此页面,即可直接跳过遮罩层
' + '
+ 