dssy.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /******************************
  2. 脚本功能:大神水印——解锁VIP
  3. 下载地址:https://is.gd/CzynmP
  4. 软件版本:2.5.0
  5. 使用声明:此脚本仅供学习与交流,请勿转载与贩卖!⚠️⚠️⚠️
  6. *******************************
  7. [rewrite_local]
  8. ^http[s]?:\/\/mars.inout.top\/user\/get_user_info url script-response-body https://git.jojo21.top/shawenguan/Quantumult-X/raw/master/Scripts/others/dssy.js
  9. ^http[s]?:\/\/mars.inout.top\/media\/editor\/inpaint url script-response-body https://git.jojo21.top/shawenguan/Quantumult-X/raw/master/Scripts/others/dssy.js
  10. [mitm]
  11. hostname = mars.inout.top
  12. *******************************/
  13. try {
  14. const url = $request.url;
  15. const path = $request.path;
  16. // console.log(`请求path=${path}#${$request.method}`);
  17. let data = JSON.parse(typeof $response != "undefined" && $response.body || null);
  18. switch (path) {
  19. case '/user/get_user_info':
  20. if(data && data.data){
  21. data.data['nickname'] = 'VIP已解锁';
  22. data.data['vip_expire_time'] = 4076744128000;
  23. data.data['auto_subscribe_or_permanent_vip'] = true;
  24. data.data['is_lifetime_membership'] = true;
  25. $done({ body: JSON.stringify(data) });
  26. }
  27. break;
  28. case '/media/editor/inpaint':
  29. // data['code'] = 200;
  30. // data['succ'] = true;
  31. $done({ body: JSON.stringify(data) });
  32. break;
  33. }
  34. } catch (err) {
  35. $done();
  36. }