// ==UserScript== // @name 网页版抖音视频下载器 // @icon https://lf1-cdn-tos.bytegoofy.com/goofy/ies/douyin_web/public/favicon.ico // @version 1.7 // @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(""); $(".YwClj8rK #fullscreen_capture_feedback").next().prepend('
'); $(".XW6jLhS3").prepend(' '); setInterval(function(){ var aaa = ""; $('.swiper-slide-active .OFZHdvpl').children().each(function(){ aaa = "true"; var cls= $(this).attr("class"); if (cls=="DownloadURL"){ aaa = "false"; return false; }; }); if (aaa=="true"){ $('.swiper-slide-active .OFZHdvpl').children().each(function(index,element){ if(index==0){ $(this).after('