// ==UserScript==
// @name 抖音视频下载 - 需进入详情页
// @namespace https://github.com/anghunk/UserScript
// @version 0.0.1
// @description 在浏览器中打开抖音,实现快速下载视频。
// @author anghunk
// @match https://*.douyin.com/*
// @icon https://p-pc-weboff.byteimg.com/tos-cn-i-9r5gewecjs/favicon.png
// @require https://cdn.bootcss.com/jquery/3.6.0/jquery.min.js
// @grant none
// @license Apache-2.0 license
// ==/UserScript==
(function () {
'use strict';
$(function () {
setTimeout(function () {
$('.danMuPlayerStyle .jkfSVWLT .wobrT4EE:nth-child(4)').remove();
$('.xgplayer.xgplayer-pc .xg-right-grid').append(`
`)
$('#xgplayer-download').click(function () {
var videoUrl = $('.xgplayer video').find('source:nth-child(1)').attr('src');
$('body').append(``)
$('#newdownload')[0].click();
})
}, 1000)
})
})();