Update server
This commit is contained in:
@@ -4,31 +4,13 @@
|
|||||||
if (navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1) {
|
if (navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1) {
|
||||||
var div = document.createElement('div');
|
var div = document.createElement('div');
|
||||||
div.setAttribute('id', 'fuckWechat');
|
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;'
|
||||||
div.style.position = 'fixed';
|
div.innerHTML = ''
|
||||||
div.style.left = '0';
|
+ '<div>'
|
||||||
div.style.top = '0';
|
+ '<h1>( ^ω^)</h1>'
|
||||||
div.style.width = '100%';
|
+ '<p>我们刚刚做了一个非常艰难的决定,这个网页不允许使用微信内置浏览器打开。<a href="javascript:;" style="color: #175199;" onclick="alert(\'因为微信要维护它所谓的“绿色上网环境”啊 :)\')">为什么这样做?</a></p>'
|
||||||
div.style.height = '100%';
|
+ '<p>请点击右上角,选择“在浏览器打开”。</p>'
|
||||||
div.style.boxSizing = 'border-box';
|
+ '</div>';
|
||||||
div.style.padding = '18px';
|
|
||||||
div.style.fontSize = '18px';
|
|
||||||
div.style.lineHeight = '1.5em';
|
|
||||||
div.style.backgroundColor = '#fff';
|
|
||||||
div.style.zIndex = '2147483647';
|
|
||||||
div.style.display = 'flex';
|
|
||||||
div.style.justifyContent = 'center';
|
|
||||||
div.style.alignItems = 'center';
|
|
||||||
|
|
||||||
var divContent = [
|
|
||||||
'<div>',
|
|
||||||
'<h1>( ^ω^)</h1>',
|
|
||||||
'<p>我们刚刚做了一个非常艰难的决定,在张小龙先生<a href="https://www.zhihu.com/question/271184234" style="color: #175199;">真正学会怎么做产品</a>之前,这个网页不允许使用微信内置浏览器打开。</p>',
|
|
||||||
'<p>请点击右上角,选择“在浏览器打开”。</p>',
|
|
||||||
'<p>你为什么还要坚持使用这个<strong>功能残缺,体验极差</strong>的社交软件?</p>',
|
|
||||||
'</div>'
|
|
||||||
].join('\n');
|
|
||||||
div.innerHTML = divContent;
|
|
||||||
|
|
||||||
document.body.innerHTML = '';
|
document.body.innerHTML = '';
|
||||||
document.body.append(div);
|
document.body.append(div);
|
||||||
|
|||||||
@@ -64,5 +64,5 @@ if (!empty($result['cover'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$result['success'] = !empty($result['title']) && !empty($result['cover']);
|
$result['success'] = !empty($result['title']) && !empty($result['cover']);
|
||||||
echo json_encode($result);
|
echo json_encode($result, JSON_UNESCAPED_UNICODE);
|
||||||
?>
|
?>
|
||||||
@@ -703,7 +703,6 @@
|
|||||||
<script src="https://cdn.jsdelivr.net/npm/html2canvas@1.0.0-alpha.12/dist/html2canvas.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/html2canvas@1.0.0-alpha.12/dist/html2canvas.min.js"></script>
|
||||||
<script src="avatarURL.js"></script>
|
<script src="avatarURL.js"></script>
|
||||||
<script src="emoticon.js"></script>
|
<script src="emoticon.js"></script>
|
||||||
<script src="fuckWechat.js"></script>
|
|
||||||
<script>
|
<script>
|
||||||
//mdui.alert('<span class="mdui-typo">本工具已获得微信官方“绿色网站”认证(滑稽),请不要尝试在微信中使用本工具。<br /><br />作者坚决反对破坏自由(而不是所谓“绿色”)上网环境的<a href="https://www.zhihu.com/question/318459753/answer/641027942" target="_blank">作恶行为</a>。<br /><br />请支持 996.icu 项目:</span><a href="https://996.icu" target="_blank"><img src="https://img.shields.io/badge/link-996.icu-red.svg" alt="996.icu" /></a>');
|
//mdui.alert('<span class="mdui-typo">本工具已获得微信官方“绿色网站”认证(滑稽),请不要尝试在微信中使用本工具。<br /><br />作者坚决反对破坏自由(而不是所谓“绿色”)上网环境的<a href="https://www.zhihu.com/question/318459753/answer/641027942" target="_blank">作恶行为</a>。<br /><br />请支持 996.icu 项目:</span><a href="https://996.icu" target="_blank"><img src="https://img.shields.io/badge/link-996.icu-red.svg" alt="996.icu" /></a>');
|
||||||
|
|
||||||
@@ -712,7 +711,7 @@
|
|||||||
var requestDialog = new mdui.Dialog('#request');
|
var requestDialog = new mdui.Dialog('#request');
|
||||||
mdui.prompt('公众号文章链接', function (value) {
|
mdui.prompt('公众号文章链接', function (value) {
|
||||||
var xhr = new XMLHttpRequest;
|
var xhr = new XMLHttpRequest;
|
||||||
xhr.open('GET', 'https://williamkong.xyz/TransparentLC/get_article_info.php?url=' + encodeURIComponent(value)); //获取标题和封面的服务器
|
xhr.open('GET', 'https://i.akarin.dev/misc/get_article_info.php?url=' + encodeURIComponent(value)); //获取标题和封面的服务器
|
||||||
xhr.onreadystatechange = function () {
|
xhr.onreadystatechange = function () {
|
||||||
if (xhr.readyState == 4) {
|
if (xhr.readyState == 4) {
|
||||||
var result = JSON.parse(xhr.responseText);
|
var result = JSON.parse(xhr.responseText);
|
||||||
@@ -1106,5 +1105,6 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<script src="fuckWechat.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user