Use fastly.jsdelivr.net instead of cdn.jsdelivr.net

This commit is contained in:
✨小透明・宸✨
2022-05-20 13:46:08 +08:00
parent ce185baf49
commit 0deef6c9b6
3 changed files with 17 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@@ -8,12 +8,12 @@
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Cache-Control" content="no-siteapp">
<meta http-equiv="Cache-Control" content="no-transform">
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/mdui@1/dist/css/mdui.min.css"> -->
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/TransparentLC/WechatMomentScreenshot/style.min.css"> -->
<link rel="stylesheet" href="https://unpkg.com/mdui@1/dist/css/mdui.min.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://fastly.jsdelivr.net/npm/mdui@1/dist/css/mdui.min.css">
<link rel="stylesheet" href="https://fastly.jsdelivr.net/gh/TransparentLC/WechatMomentScreenshot/style.min.css">
<!-- <link rel="stylesheet" href="https://unpkg.com/mdui@1/dist/css/mdui.min.css"> -->
<!-- <link rel="stylesheet" href="style.css"> -->
<!-- <script src="https://cdn.jsdelivr.net/npm/eruda"></script><script>eruda.init()</script> -->
<!-- <script src="https://fastly.jsdelivr.net/npm/eruda"></script><script>eruda.init()</script> -->
<script>new URL(location.href).searchParams.has("debug")&&(document.write(atob('PHNjcmlwdCBzcmM9Imh0dHBzOi8vY2RuLmpzZGVsaXZyLm5ldC9ucG0vZXJ1ZGEiPjwvc2NyaXB0PjxzY3JpcHQ+ZXJ1ZGEuaW5pdCgpPC9zY3JpcHQ+')))</script>
</head>
<body class="mdui-theme-primary-indigo mdui-theme-accent-pink mdui-appbar-with-toolbar">
@@ -480,12 +480,12 @@
</div>
</div>
<!-- <script src="https://cdn.jsdelivr.net/combine/npm/mdui@1/dist/js/mdui.min.js,npm/html2canvas@1/dist/html2canvas.min.js,gh/TransparentLC/WechatMomentScreenshot@latest/main.min.js"></script> -->
<!-- <script src="https://cdn.jsdelivr.net/npm/mdui@1/dist/js/mdui.min.js"></script> -->
<!-- <script src="https://cdn.jsdelivr.net/npm/html2canvas@1/dist/html2canvas.min.js"></script> -->
<!-- <script src="https://cdn.jsdelivr.net/gh/TransparentLC/WechatMomentScreenshot/main.min.js"></script> -->
<script src="https://unpkg.com/mdui@1/dist/js/mdui.min.js"></script>
<script src="https://unpkg.com/html2canvas@1/dist/html2canvas.min.js"></script>
<script src="main.js"></script>
<script src="https://fastly.jsdelivr.net/combine/npm/mdui@1/dist/js/mdui.min.js,npm/html2canvas@1/dist/html2canvas.min.js,gh/TransparentLC/WechatMomentScreenshot@latest/main.min.js"></script>
<!-- <script src="https://fastly.jsdelivr.net/npm/mdui@1/dist/js/mdui.min.js"></script> -->
<!-- <script src="https://fastly.jsdelivr.net/npm/html2canvas@1/dist/html2canvas.min.js"></script> -->
<!-- <script src="https://fastly.jsdelivr.net/gh/TransparentLC/WechatMomentScreenshot/main.min.js"></script> -->
<!-- <script src="https://unpkg.com/mdui@1/dist/js/mdui.min.js"></script> -->
<!-- <script src="https://unpkg.com/html2canvas@1/dist/html2canvas.min.js"></script> -->
<!-- <script src="main.js"></script> -->
</body>
</html>

View File

@@ -54,14 +54,14 @@ if (inBlacklist) {
);
}
if (navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1) loadScript('https://cdn.jsdelivr.net/gh/TransparentLC/WechatMomentScreenshot/fuckWechat.min.js');
if (navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1) loadScript('https://fastly.jsdelivr.net/gh/TransparentLC/WechatMomentScreenshot/fuckWechat.min.js');
if (!window.Promise) loadScript('https://cdn.jsdelivr.net/npm/promise-polyfill/dist/polyfill.min.js');
if (!window.Promise) loadScript('https://fastly.jsdelivr.net/npm/promise-polyfill/dist/polyfill.min.js');
var avatarURL = [];
xhrGet('https://cdn.jsdelivr.net/gh/TransparentLC/WechatMomentScreenshot/avatarURL.json', function (result) { avatarURL = JSON.parse(result) });
xhrGet('https://fastly.jsdelivr.net/gh/TransparentLC/WechatMomentScreenshot/avatarURL.json', function (result) { avatarURL = JSON.parse(result) });
var emoticon = [];
xhrGet('https://cdn.jsdelivr.net/gh/TransparentLC/WechatMomentScreenshot/emoticon.json', function (result) { emoticon = JSON.parse(result) });
xhrGet('https://fastly.jsdelivr.net/gh/TransparentLC/WechatMomentScreenshot/emoticon.json', function (result) { emoticon = JSON.parse(result) });
// 读取配置
var configDefault = {