refactor: update index.html and vite.config.ts to use local libraries and remove unnecessary scripts
This commit is contained in:
38
index.html
38
index.html
@@ -28,9 +28,6 @@
|
||||
content="Type Words:在线英语练习平台,支持单词跟打、文章练习,提升打字速度与英语水平。">
|
||||
<meta name="twitter:image" content="https://2study.top/favicon.png">
|
||||
|
||||
<!--用于百度站长验证 -->
|
||||
<meta name="baidu-site-verification" content="codeva-Kw33xFT3p2"/>
|
||||
|
||||
<script>
|
||||
;(function () {
|
||||
var src = '//cdn.jsdelivr.net/npm/eruda';
|
||||
@@ -39,41 +36,6 @@
|
||||
document.write('<scr' + 'ipt>eruda.init();</scr' + 'ipt>');
|
||||
})();
|
||||
</script>
|
||||
<script>
|
||||
if (!location.href.includes('localhost')
|
||||
&& !location.href.includes('192.168')
|
||||
&& !location.href.includes('172.16')
|
||||
&& !location.href.includes('10.0')
|
||||
) {
|
||||
var _hmt = _hmt || [];
|
||||
(function () {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?3dae52fcd5375a19905462e4ad3eb54e";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
(function () {
|
||||
var umami = document.createElement("script");
|
||||
umami.src = 'https://2study.top/s.js'
|
||||
if (location.href.includes('vercel') || location.href.includes('tw')) {
|
||||
umami.setAttribute("data-website-id", "f630eefc-8b91-4e20-b890-106e6c7bcc10");
|
||||
} else {
|
||||
umami.setAttribute("data-website-id", "160308c9-7900-4b1d-a0b1-c3b25a9530f6");
|
||||
}
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(umami, s);
|
||||
})();
|
||||
|
||||
(function () {
|
||||
var umami2 = document.createElement("script");
|
||||
umami2.src = 'https://stat.2study.top/script.js'
|
||||
umami2.setAttribute("data-website-id", "4d728ae3-5393-4efe-81dc-30dcb4f33c00");
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(umami2, s);
|
||||
})();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user