Tony老湿 发表于 2020-11-19 17:03

直接在抖音里下载无水印视频

此方法直接在抖音里点下载按钮就可以直接下载无水印视频保存到相册中,
只支持ios设备,需要小火jian,小气球,圈x或surge其中任意一个app
原理就是利用中间人攻击篡改返回的视频信息,把下载地址替换成无水印的播放地址
使用方法是添加重写调用js脚本,用过以上其中一个app的就应该怎么添加重写
//重写匹配地址:api3-core-c-hl.amemv.com/aweme/v1/aweme/post
//QuanX重写配置:api3-core-c-hl.amemv.com/aweme/v1/aweme/post url script-response-body https://gitee.com/passerby-b/javascript/raw/master/dywm.js
//MITM:*.amemv.com
//需要到作者的作品列表里找到那个视频再下载

console.log("🍎抖音去水印脚本开始!");
var body = $response.body;
var $tool = tool();
try {
    if ($request.url.indexOf("api3-core-c-hl.amemv.com/aweme/v1/aweme/post") > -1 && !!body) {
      var obj = $tool.str2json(body);
      for (var i = 0; i < obj.aweme_list.length; i++) {
            var play_addr = obj.aweme_list.video.play_addr.url_list;
            obj.aweme_list.video.download_addr.url_list = play_addr;
            console.log("&#127822;播放地址:" + play_addr);
      }
      $done({ body: $tool.json2str(obj) });
    }
    else {
      $done({});
    }
} catch (e) {
    console.log("&#127822;try错误:" + e);
    $tool.notify('try错误!', 'try错误:', e);
    $done({});
}
console.log("执行完成!!!!");

function tool(){var a=typeof $httpClient!="undefined";var b=typeof $task!="undefined";var c={notify:function(i,f,h,g){var e={};if(b){if(!!g){if(typeof g=="string"){e["open-url"]=g}if(!!g.url){e["open-url"]=g.url}if(!!g.img){e["media-url"]=g.img}$notify(i,f,h,e)}else{$notify(i,f,h)}}if(a){if(!!g){if(typeof g=="string"){e["openUrl"]=g}if(!!g.url){e["openUrl"]=g.url}if(!!g.img){e["mediaUrl"]=g.img}$notification.post(i,f,h,e)}else{$notification.post(i,f,h)}}},get:function(e,f){if(b){if(typeof e=="string"){e={url:e}}e["method"]="GET";$task.fetch(e).then(function(g){f(null,d(g),g.body)},function(g){f(g.error,null,null)})}if(a){$httpClient.get(e,function(i,h,g){f(i,d(h),g)})}},post:function(e,f){if(b){if(typeof e=="string"){e={url:e}}e["method"]="POST";$task.fetch(e).then(function(g){f(null,d(g),g.body)},function(g){f(g.error,null,null)})}if(a){$httpClient.post(e,function(i,h,g){f(i,d(h),g)})}},unicode:function(e){return unescape(e.replace(/\\u/gi,"%u"))},decodeurl:function(e){return decodeURIComponent(e)},json2str:function(e){return JSON.stringify(e)},str2json:function(e){return JSON.parse(e)},setkeyval:function(f,e){if(b){$prefs.setValueForKey(f,e)}if(a){$persistentStore.write(f,e)}},getkeyval:function(e){if(b){return $prefs.valueForKey(e)}if(a){return $persistentStore.read(e)}}};function d(e){if(e){if(e.status){e["statusCode"]=e.status}else{if(e.statusCode){e["status"]=e.statusCode}}}return e}return c};

蔚蓝色 发表于 2020-11-19 17:03

谢谢大佬

水木夏 发表于 2020-11-19 17:35

谢谢@Thanks!

sdwzzx 发表于 2020-11-19 18:15

感谢楼主分享

13297181913 发表于 2020-11-19 18:42

谢谢大牛

qwer123 发表于 2020-11-19 18:52

谢谢分享

ladun1230 发表于 2020-11-19 19:06

谢谢分享!

18628265489 发表于 2020-11-19 20:18


支持楼主,谢谢分享。

王一随 发表于 2020-11-19 21:21

6666

ivwiawje 发表于 2020-11-19 22:27


感谢楼主的分享
页: [1] 2
查看完整版本: 直接在抖音里下载无水印视频