您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script downloads video from joker.ykt.ru
// ==UserScript== // @name Joker YKT video downloader // @namespace http://joker.ykt.com/ // @version 0.1 // @description This script downloads video from joker.ykt.ru // @author Kenya-West // @match http*://joker.ykt.ru/*/* // @grant none // ==/UserScript== window.onload = () => { getVideoURLs(); } function getVideoURLs() { let linkId = document.querySelector(".vjs-poster").style.backgroundImage; linkId = /(media\.ykt\.ru.*)\/preview\/preview/gi.exec(linkId)[1]; const linkArray = new Array(); document.querySelectorAll(".vjs-res-button .vjs-menu .vjs-menu-item").forEach( (element => { linkArray.push( { link: "https://" + linkId + "/file/" + element.innerText + ".mp4", caption: element.innerText } ); }) ); linkArray.forEach(link => { const downloadLink = document.createElement("a"); downloadLink.href = link.link; downloadLink.innerText = "Скачать " + link.caption; downloadLink.style.margin = "5px 2px"; document.querySelector(".newstitle").appendChild(downloadLink); }) }