Add files via upload

This commit is contained in:
gaotianliuyun
2023-04-24 13:39:13 +08:00
committed by GitHub
parent 1db485de74
commit ad7d4f928a
6 changed files with 25 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
import cheerio from 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/cheerio.min.js';
import 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/crypto-js.js';
import cheerio from 'https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/cheerio.min.js';
import 'https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/crypto-js.js';
function init_test(){
// console.log(typeof(CryptoJS));
@@ -374,7 +374,7 @@ function md5(text) {
}
function getCryptoJS(){
// return request('https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/crypto-hiker.js');
// return request('https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/crypto-hiker.js');
return 'console.log("CryptoJS已装载");'
}
@@ -1867,7 +1867,7 @@ function init(ext) {
try {
// make shared jsContext happy muban不能import,不然会造成换源继承后变量被篡改
if (typeof (globalThis.mubanJs) === 'undefined') {
let mubanJs = request('https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/模板.js', { 'User-Agent': MOBILE_UA });
let mubanJs = request('https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js', { 'User-Agent': MOBILE_UA });
mubanJs = mubanJs.replace('export default', '(function() {return muban;}()) // export default');
// console.log(mubanJs);
globalThis.mubanJs = mubanJs;