mirror of
https://github.com/qist/tvbox.git
synced 2025-10-30 11:42:22 +00:00
Add files via upload
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user