// ==UserScript== // @name 网页版抖音视频下载器 // @icon https://lf1-cdn-tos.bytegoofy.com/goofy/ies/douyin_web/public/favicon.ico // @version 1.5 // @description 插入当前视频的下载按钮 // @author xiaofang // @match *://www.douyin.com/* // @grant none // @require http://code.jquery.com/jquery-1.11.0.min.js // @namespace https://greasyfork.org/zh-CN/scripts/438928 // @supportURL https://github.com/xiaofang113/GreasyFork/blob/main/%E6%8A%96%E9%9F%B3%E8%A7%86%E9%A2%91%E4%B8%8B%E8%BD%BD%E5%99%A8/current_version.js // @homepageURL https://github.com/xiaofang113/GreasyFork/blob/main/%E6%8A%96%E9%9F%B3%E8%A7%86%E9%A2%91%E4%B8%8B%E8%BD%BD%E5%99%A8/current_version.js // @downloadURL none // ==/UserScript== (function(){ console.log("脚本启动成功"); window.onload = function(){ $("head").prepend("") $("head").prepend("") $("head").prepend("") $("head").prepend("") setInterval(function(){ var aaa = ""; $('.swiper-slide-active .xgplayer-video-interaction-wrap').children().each(function(){ aaa = "true"; var cls= $(this).attr("class"); if (cls=="ypM1fp5X DownloadURL"){ aaa = "false"; return false; }; }); if (aaa=="true"){ $('.swiper-slide-active .xgplayer-video-interaction-wrap').children().each(function(index,element){ if(index==0){ $(this).after('
下载
'); return false; }; }); }; var bbb = ""; $('.UwvcKsMK').children().each(function(){ bbb = "true"; var cls2= $(this).attr("class"); if (cls2=="kr4MM4DQ DownloadURL"){ bbb = "false"; return false; }; }); if (bbb=="true"){ $('.UwvcKsMK').children().each(function(index,element){ if(index==3){ $(this).after('
下载
'); return false; }; }); }; },1000); } })();