/****************************** 脚本功能:天涯论坛——解锁—金币视频—VIP视频 特别说明:开启脚本即可在线观看视频 特别说明:必须开启HTTP抓包,并且关闭其他的脚本 下载地址:https://aff.tyapp.net/?code=ceV4 脚本作者:彭于晏💞 更新时间:2023—11-8 问题反馈:QQ+89996462 QQ会员群:779392027💞 TG反馈群:https://t.me/plus8889 TG频道群:https://t.me/py996 使用声明:此脚本仅供学习与交流,请勿转载与贩卖!⚠️⚠️⚠️ ******************************* [rewrite_local] ^https?://(10play\.snowing\.ren)/(\w+)/\w{32}/\w{32}\.m3u8\? url script-request-header https://raw.githubusercontent.com/89996462/Quantumult-X/main/ghs/tylt.js ^https?://(120play\.snowing\.ren)/(\w+)/\w{32}/\w{32}\.m3u8\? url script-request-header https://raw.githubusercontent.com/89996462/Quantumult-X/main/ghs/tylt.js [mitm] hostname = *.snowing.ren *******************************/ var version_='jsjiami.com.v7';const _0x1dc273=_0x390d;(function(_0x2d8ca7,_0xb7d552,_0x3accca,_0x6646ec,_0x3ea8b2,_0x4fbd47,_0x42de36){return _0x2d8ca7=_0x2d8ca7>>0x1,_0x4fbd47='hs',_0x42de36='hs',function(_0xd97a81,_0x2027f8,_0x44eb03,_0x9104df,_0x1f2fd5){const _0x221768=_0x390d;_0x9104df='tfi',_0x4fbd47=_0x9104df+_0x4fbd47,_0x1f2fd5='up',_0x42de36+=_0x1f2fd5,_0x4fbd47=_0x44eb03(_0x4fbd47),_0x42de36=_0x44eb03(_0x42de36),_0x44eb03=0x0;const _0x4f96c8=_0xd97a81();while(!![]&&--_0x6646ec+_0x2027f8){try{_0x9104df=parseInt(_0x221768(0xd4,'tDOM'))/0x1+parseInt(_0x221768(0xc8,'TGw2'))/0x2*(-parseInt(_0x221768(0xca,'$%j%'))/0x3)+-parseInt(_0x221768(0xc7,'IxVj'))/0x4+-parseInt(_0x221768(0xd3,'A#xa'))/0x5*(-parseInt(_0x221768(0xbc,'m&22'))/0x6)+parseInt(_0x221768(0xc4,'tDOM'))/0x7*(-parseInt(_0x221768(0xcb,'mw]3'))/0x8)+-parseInt(_0x221768(0xc5,'W6u)'))/0x9+parseInt(_0x221768(0xce,'4&!F'))/0xa;}catch(_0x402608){_0x9104df=_0x44eb03;}finally{_0x1f2fd5=_0x4f96c8[_0x4fbd47]();if(_0x2d8ca7<=_0x6646ec)_0x44eb03?_0x3ea8b2?_0x9104df=_0x1f2fd5:_0x3ea8b2=_0x1f2fd5:_0x44eb03=_0x1f2fd5;else{if(_0x44eb03==_0x3ea8b2['replace'](/[SVefBqltWnJULbOYRNM=]/g,'')){if(_0x9104df===_0x2027f8){_0x4f96c8['un'+_0x4fbd47](_0x1f2fd5);break;}_0x4f96c8[_0x42de36](_0x1f2fd5);}}}}}(_0x3accca,_0xb7d552,function(_0x44137f,_0x3d5f9e,_0x26999f,_0x384f50,_0x589029,_0xb4c8f0,_0x5002be){return _0x3d5f9e='\x73\x70\x6c\x69\x74',_0x44137f=arguments[0x0],_0x44137f=_0x44137f[_0x3d5f9e](''),_0x26999f='\x72\x65\x76\x65\x72\x73\x65',_0x44137f=_0x44137f[_0x26999f]('\x76'),_0x384f50='\x6a\x6f\x69\x6e',(0x145ede,_0x44137f[_0x384f50](''));});}(0x196,0xd7298,_0xf806,0xcd),_0xf806)&&(version_=_0x1dc273(0xd0,'W6u)'));const $=new Env(_0x1dc273(0xd2,'QW&3'));let url=$request[_0x1dc273(0xcf,'xKet')],headers=$request[_0x1dc273(0xbd,'o)x2')];function _0x390d(_0x5d686d,_0x4af5e5){const _0xf806a6=_0xf806();return _0x390d=function(_0x390db0,_0x43b4ca){_0x390db0=_0x390db0-0xbb;let _0x26a681=_0xf806a6[_0x390db0];if(_0x390d['LentMq']===undefined){var _0x18e9c2=function(_0x337ea0){const _0x33f4d6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44ab54='',_0x9d2198='';for(let _0x52ca8c=0x0,_0x54750d,_0x1445af,_0x9817d7=0x0;_0x1445af=_0x337ea0['charAt'](_0x9817d7++);~_0x1445af&&(_0x54750d=_0x52ca8c%0x4?_0x54750d*0x40+_0x1445af:_0x1445af,_0x52ca8c++%0x4)?_0x44ab54+=String['fromCharCode'](0xff&_0x54750d>>(-0x2*_0x52ca8c&0x6)):0x0){_0x1445af=_0x33f4d6['indexOf'](_0x1445af);}for(let _0x4f5c04=0x0,_0x2e343a=_0x44ab54['length'];_0x4f5c04<_0x2e343a;_0x4f5c04++){_0x9d2198+='%'+('00'+_0x44ab54['charCodeAt'](_0x4f5c04)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x9d2198);};const _0x381046=function(_0x2a7785,_0x2d663a){let _0x55714a=[],_0x369b5e=0x0,_0xec8a49,_0x3b7aa2='';_0x2a7785=_0x18e9c2(_0x2a7785);let _0x1dddfc;for(_0x1dddfc=0x0;_0x1dddfc<0x100;_0x1dddfc++){_0x55714a[_0x1dddfc]=_0x1dddfc;}for(_0x1dddfc=0x0;_0x1dddfc<0x100;_0x1dddfc++){_0x369b5e=(_0x369b5e+_0x55714a[_0x1dddfc]+_0x2d663a['charCodeAt'](_0x1dddfc%_0x2d663a['length']))%0x100,_0xec8a49=_0x55714a[_0x1dddfc],_0x55714a[_0x1dddfc]=_0x55714a[_0x369b5e],_0x55714a[_0x369b5e]=_0xec8a49;}_0x1dddfc=0x0,_0x369b5e=0x0;for(let _0x3c2f8b=0x0;_0x3c2f8b<_0x2a7785['length'];_0x3c2f8b++){_0x1dddfc=(_0x1dddfc+0x1)%0x100,_0x369b5e=(_0x369b5e+_0x55714a[_0x1dddfc])%0x100,_0xec8a49=_0x55714a[_0x1dddfc],_0x55714a[_0x1dddfc]=_0x55714a[_0x369b5e],_0x55714a[_0x369b5e]=_0xec8a49,_0x3b7aa2+=String['fromCharCode'](_0x2a7785['charCodeAt'](_0x3c2f8b)^_0x55714a[(_0x55714a[_0x1dddfc]+_0x55714a[_0x369b5e])%0x100]);}return _0x3b7aa2;};_0x390d['vKvOIQ']=_0x381046,_0x5d686d=arguments,_0x390d['LentMq']=!![];}const _0x1b0cca=_0xf806a6[0x0],_0x4296bd=_0x390db0+_0x1b0cca,_0x38041b=_0x5d686d[_0x4296bd];return!_0x38041b?(_0x390d['YMzSaq']===undefined&&(_0x390d['YMzSaq']=!![]),_0x26a681=_0x390d['vKvOIQ'](_0x26a681,_0x43b4ca),_0x5d686d[_0x4296bd]=_0x26a681):_0x26a681=_0x38041b,_0x26a681;},_0x390d(_0x5d686d,_0x4af5e5);}url=url[_0x1dc273(0xd5,'$%j%')](/\/\/(?!long)[^\.]+\./,_0x1dc273(0xc3,'PLE7'))['replace'](/\?.*/,'');function _0xf806(){const _0x30c526=(function(){return[version_,'bUnjVsejMYilqNamRiUS.UWcJLUoffm.OfvBet7U==','WOZcNCojW4PcvrxcLZtdHhiNWQK','q1JcHZlcVgLNW4X9WOyKna','WP4WgbLbwqK6qf4','EmkCvCkXnmo2l8kcjSo3','WPyYhXOeauGnz0nIDSkh','kLGgW4igaftdICoiW7FcOSk7dxC','t3tcVG','W7JcPqVdNqjRWR3cKHj0WPH5W7Pd'].concat((function(){return['WRfpW6pdLG','hGLUeCksWP7dGmo/','W53cI2vIW45ViG','mmkpbf1CW786WR/dQLmmEmoX','aW7dHgBdPdHS','d8oAWONcRCkIWR/dTSkMdr7cJmoYoci','WOtcTCkVW74hfwxcGLSHWRDKvG','jMZdTmkZELpcUq','W4qGW7apW4/cOSkhrWm2W6CO','nJT7'].concat((function(){return['WPiZgbShaeCqAevJBmkn','Cv7cLeL7WPldR3a','W51iW7TcW6lcJ8onab/cSZu+WRqp','W7awW5PSW6pcRhm','mSkoaX4TWO9BWPRdQq','WQpdOvlcG1e/W6pdHaDRWOuEW5W','o8oOpxpdJWmEW4GxWPeiacnjWPXvcCkQaXjG','f8knWQxdGsZdOHNdKWNcNb7cPqe','WQNdVSk1oCkdnhxcGa'];}()));}()));}());_0xf806=function(){return _0x30c526;};return _0xf806();};headers[_0x1dc273(0xc2,'1i(F')](_0x1dc273(0xc6,'tWWE'))&&$[_0x1dc273(0xbf,'GLrN')]('彭于晏温馨提示你','视频链接捕获成功','点击通知在线观看',url);$[_0x1dc273(0xd1,'[Ih(')]({});var version_ = 'jsjiami.com.v7'; function Env(t,e){class s{constructor(t){this.env=t}send(t,e="GET"){t="string"==typeof t?{url:t}:t;let s=this.get;return"POST"===e&&(s=this.post),new Promise((e,a)=>{s.call(this,t,(t,s,r)=>{t?a(t):e(s)})})}get(t){return this.send.call(this.env,t)}post(t){return this.send.call(this.env,t,"POST")}}return new class{constructor(t,e){this.name=t,this.http=new s(this),this.data=null,this.dataFile="box.dat",this.logs=[],this.isMute=!1,this.isNeedRewrite=!1,this.logSeparator="\n",this.encoding="utf-8",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}getEnv(){return"undefined"!=typeof $environment&&$environment["surge-version"]?"Surge":"undefined"!=typeof $environment&&$environment["stash-version"]?"Stash":"undefined"!=typeof module&&module.exports?"Node.js":"undefined"!=typeof $task?"Quantumult X":"undefined"!=typeof $loon?"Loon":"undefined"!=typeof $rocket?"Shadowrocket":void 0}isNode(){return"Node.js"===this.getEnv()}isQuanX(){return"Quantumult X"===this.getEnv()}isSurge(){return"Surge"===this.getEnv()}isLoon(){return"Loon"===this.getEnv()}isShadowrocket(){return"Shadowrocket"===this.getEnv()}isStash(){return"Stash"===this.getEnv()}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null){try{return JSON.stringify(t)}catch{return e}}getjson(t,e){let s=e;const a=this.getdata(t);if(a)try{s=JSON.parse(this.getdata(t))}catch{}return s}setjson(t,e){try{return this.setdata(JSON.stringify(t),e)}catch{return!1}}getScript(t){return new Promise(e=>{this.get({url:t},(t,s,a)=>e(a))})}runScript(t,e){return new Promise(s=>{let a=this.getdata("@chavy_boxjs_userCfgs.httpapi");a=a?a.replace(/\n/g,"").trim():a;let r=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout");r=r?1*r:20,r=e&&e.timeout?e.timeout:r;const[i,o]=a.split("@"),n={url:`http://${o}/v1/scripting/evaluate`,body:{script_text:t,mock_type:"cron",timeout:r},headers:{"X-Key":i,Accept:"*/*"},timeout:r};this.post(n,(t,e,a)=>s(a))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};{this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),a=!s&&this.fs.existsSync(e);if(!s&&!a)return{};{const a=s?t:e;try{return JSON.parse(this.fs.readFileSync(a))}catch(t){return{}}}}}writedata(){if(this.isNode()){this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),a=!s&&this.fs.existsSync(e),r=JSON.stringify(this.data);s?this.fs.writeFileSync(t,r):a?this.fs.writeFileSync(e,r):this.fs.writeFileSync(t,r)}}lodash_get(t,e,s){const a=e.replace(/\[(\d+)\]/g,".$1").split(".");let r=t;for(const t of a)if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,e,s){return Object(t)!==t?t:(Array.isArray(e)||(e=e.toString().match(/[^.[\]]+/g)||[]),e.slice(0,-1).reduce((t,s,a)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(e[a+1])>>0==+e[a+1]?[]:{},t)[e[e.length-1]]=s,t)}getdata(t){let e=this.getval(t);if(/^@/.test(t)){const[,s,a]=/^@(.*?)\.(.*?)$/.exec(t),r=s?this.getval(s):"";if(r)try{const t=JSON.parse(r);e=t?this.lodash_get(t,a,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){const[,a,r]=/^@(.*?)\.(.*?)$/.exec(e),i=this.getval(a),o=a?"null"===i?null:i||"{}":"{}";try{const e=JSON.parse(o);this.lodash_set(e,r,t),s=this.setval(JSON.stringify(e),a)}catch(e){const i={};this.lodash_set(i,r,t),s=this.setval(JSON.stringify(i),a)}}else s=this.setval(t,e);return s}getval(t){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.read(t);case"Quantumult X":return $prefs.valueForKey(t);case"Node.js":return this.data=this.loaddata(),this.data[t];default:return this.data&&this.data[t]||null}}setval(t,e){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.write(t,e);case"Quantumult X":return $prefs.setValueForKey(t,e);case"Node.js":return this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0;default:return this.data&&this.data[e]||null}}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){switch(t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"],delete t.headers["content-type"],delete t.headers["content-length"]),t.params&&(t.url+="?"+this.queryStr(t.params)),this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":default:this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.get(t,(t,s,a)=>{!t&&s&&(s.body=a,s.statusCode=s.status?s.status:s.statusCode,s.status=s.statusCode),e(t,s,a)});break;case"Quantumult X":this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:a,headers:r,body:i,bodyBytes:o}=t;e(null,{status:s,statusCode:a,headers:r,body:i,bodyBytes:o},i,o)},t=>e(t&&t.error||"UndefinedError"));break;case"Node.js":let s=require("iconv-lite");this.initGotEnv(t),this.got(t).on("redirect",(t,e)=>{try{if(t.headers["set-cookie"]){const s=t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();s&&this.ckjar.setCookieSync(s,null),e.cookieJar=this.ckjar}}catch(t){this.logErr(t)}}).then(t=>{const{statusCode:a,statusCode:r,headers:i,rawBody:o}=t,n=s.decode(o,this.encoding);e(null,{status:a,statusCode:r,headers:i,rawBody:o,body:n},n)},t=>{const{message:a,response:r}=t;e(a,r,r&&s.decode(r.rawBody,this.encoding))})}}post(t,e=(()=>{})){const s=t.method?t.method.toLocaleLowerCase():"post";switch(t.body&&t.headers&&!t.headers["Content-Type"]&&!t.headers["content-type"]&&(t.headers["content-type"]="application/x-www-form-urlencoded"),t.headers&&(delete t.headers["Content-Length"],delete t.headers["content-length"]),this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":default:this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient[s](t,(t,s,a)=>{!t&&s&&(s.body=a,s.statusCode=s.status?s.status:s.statusCode,s.status=s.statusCode),e(t,s,a)});break;case"Quantumult X":t.method=s,this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:a,headers:r,body:i,bodyBytes:o}=t;e(null,{status:s,statusCode:a,headers:r,body:i,bodyBytes:o},i,o)},t=>e(t&&t.error||"UndefinedError"));break;case"Node.js":let a=require("iconv-lite");this.initGotEnv(t);const{url:r,...i}=t;this.got[s](r,i).then(t=>{const{statusCode:s,statusCode:r,headers:i,rawBody:o}=t,n=a.decode(o,this.encoding);e(null,{status:s,statusCode:r,headers:i,rawBody:o,body:n},n)},t=>{const{message:s,response:r}=t;e(s,r,r&&a.decode(r.rawBody,this.encoding))})}}time(t,e=null){const s=e?new Date(e):new Date;let a={"M+":s.getMonth()+1,"d+":s.getDate(),"H+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":Math.floor((s.getMonth()+3)/3),S:s.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in a)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?a[e]:("00"+a[e]).substr((""+a[e]).length)));return t}queryStr(t){let e="";for(const s in t){let a=t[s];null!=a&&""!==a&&("object"==typeof a&&(a=JSON.stringify(a)),e+=`${s}=${a}&`)}return e=e.substring(0,e.length-1),e}msg(e=t,s="",a="",r){const i=t=>{switch(typeof t){case void 0:return t;case"string":switch(this.getEnv()){case"Surge":case"Stash":default:return{url:t};case"Loon":case"Shadowrocket":return t;case"Quantumult X":return{"open-url":t};case"Node.js":return}case"object":switch(this.getEnv()){case"Surge":case"Stash":case"Shadowrocket":default:{let e=t.url||t.openUrl||t["open-url"];return{url:e}}case"Loon":{let e=t.openUrl||t.url||t["open-url"],s=t.mediaUrl||t["media-url"];return{openUrl:e,mediaUrl:s}}case"Quantumult X":{let e=t["open-url"]||t.url||t.openUrl,s=t["media-url"]||t.mediaUrl,a=t["update-pasteboard"]||t.updatePasteboard;return{"open-url":e,"media-url":s,"update-pasteboard":a}}case"Node.js":return}default:return}};if(!this.isMute)switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":default:$notification.post(e,s,a,i(r));break;case"Quantumult X":$notify(e,s,a,i(r));break;case"Node.js":}if(!this.isMuteLog){let t=["","==============📣系统通知📣=============="];t.push(e),s&&t.push(s),a&&t.push(a),console.log(t.join("\n")),this.logs=this.logs.concat(t)}}log(...t){t.length>0&&(this.logs=[...this.logs,...t]),console.log(t.join(this.logSeparator))}logErr(t,e){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":case"Quantumult X":default:this.log("",`❗️${this.name}, 错误!`,t);break;case"Node.js":this.log("",`❗️${this.name}, 错误!`,t.stack)}}wait(t){return new Promise(e=>setTimeout(e,t))}done(t={}){const e=(new Date).getTime(),s=(e-this.startTime)/1e3;switch(this.log("",`🔔${this.name}, 结束! 🕛 ${s} 秒`),this.log(),this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":case"Quantumult X":default:$done(t);break;case"Node.js":process.exit(1)}}}(t,e)}