更新 'drpy/drpy2.js'

master
src48597962 8 months ago
parent ab2fca6dac
commit c36f9c8fec
  1. 14
      drpy/drpy2.js

@ -2895,15 +2895,6 @@ function init(ext) {
rule_fetch_params = {}; rule_fetch_params = {};
fetch_params = null; fetch_params = null;
try { try {
// make shared jsContext happy muban不能import,不然会造成换源继承后变量被篡改
// if (typeof (globalThis.mubanJs) === 'undefined') {
// 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;
// }
// let muban = eval(globalThis.mubanJs);
let muban = 模板.getMubans(); let muban = 模板.getMubans();
// print(typeof (muban)); // print(typeof (muban));
// print(muban); // print(muban);
@ -3070,9 +3061,10 @@ function init(ext) {
rule_fetch_params = {'headers': rule.headers || false, 'timeout': rule.timeout, 'encoding': rule.encoding}; rule_fetch_params = {'headers': rule.headers || false, 'timeout': rule.timeout, 'encoding': rule.encoding};
oheaders = rule.headers || {}; oheaders = rule.headers || {};
RKEY = typeof (key) !== 'undefined' && key ? key : 'drpy_' + (rule.title || rule.host); RKEY = typeof (key) !== 'undefined' && key ? key : 'drpy_' + (rule.title || rule.host);
console.log("准备显示");
//log(Object.keys(this));
pre(); // 预处理 pre(); // 预处理
log("准备显示");
log(Object.keys(this));
init_test(); init_test();
} catch (e) { } catch (e) {
console.log(`init_test发生错误:${e.message}`); console.log(`init_test发生错误:${e.message}`);

Loading…
Cancel
Save