// ==UserScript== // @name 抖音无水印视频下载⭕豆豆 // @version 0.0.2 // @description 抖音无水印视频下载⭕豆豆⭕持续更新。 // @author ian // @match *://*.douyin.com/* // @match *://www.xiaohongshu.com/* // @grant GM_addStyle // @run-at document-start // @license ian-6.0-or-later // @namespace douyin_video_downloader // @downloadURL none // ==/UserScript== (function() { 'use strict'; let css=`#videoDownload { position:fixed; float:none; text-align:center; padding:9px 0; justify-content:center; right:0; top:-50px; border-radius:18px; width:68px; height:36px; background:#0eb479; font-weight:500; font-size:14px; color:#fff; cursor:pointer; z-index:9999999999; } #videoDownload:hover { background:#17d491 } `; GM_addStyle(css); let Warehouse=[]; function downloadInit() { try{ let xgright=document.querySelectorAll(".xg-right-grid"); for(let k=0;k<=xgright.length;k++){ if(xgright[k].title){ console.log(101,xgright[k].title); }else{ xgright[k].title="ian"; let fixButton = document.createElement('xg-icon'); fixButton.className="xgplayer-playback-setting"; fixButton.innerHTML='
下载
'; xgright[k].appendChild(fixButton); try { let btn = document.querySelector('.ianDownload') console.log(1001) btn.addEventListener('click', function(e) { console.log(1002) e.stopPropagation(); downloaparse(Warehouse); }) } catch(err) {} } } }catch (e) {} } //id匹配 function Match_id(modal_id,itemArr) { try { for(let i=0;i { try { list.getEntries().forEach(entry => { let xhr=decodeURIComponent(entry.name).replace(/[\\]/g, ''); //console.log('-----',xhr) downloadInit(); if(xhr.match(/tos\-cn\-ve/)){ console.log(7008,xhr) Warehouse.push(xhr); throw Error(); } }); } catch(err) {} }); monitor.observe(config); window.performance.mark('registered-observer'); })();