您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A Tampermonkey scrpit for downloading videos from mypikpak.
// ==UserScript== // @name Mypikpak Video Download // @name:zh Mypikpak视频下载器 // @namespace https://github.com/hugeWrongMistake/MypikpakVideoDownloader_direct // @author hugeWrongMistake // @version 2024-12-05 // @description A Tampermonkey scrpit for downloading videos from mypikpak. // @description:zh 从Mypikpak下载视频的Tampermonkey脚本 // @match https://mypikpak.com/s/* // @icon https://www.google.com/s2/favicons?sz=64&domain=mypikpak.com // @grant GM_registerMenuCommand // @grant GM_addElement // @grant GM_download // @connect localhost // ==/UserScript== (function() { 'use strict'; function getVideoFilename(){ const ele = document.getElementsByClassName("title")[0]; if(!ele) { alert("Cant find video name"); return "download.mp4"; } else{return ele.innerText;} } function findVideos(cb) { const arr = document.getElementsByTagName("video"); if(arr.length <= 0) { const msg = "Can't find any Video Element"; alert(msg); throw msg; } const filename = getVideoFilename(); for(var ele of arr) { console.log("found a video:" + filename); console.log("link:" + ele.currentSrc); cb(ele.currentSrc, filename); } } const menu_command_id = GM_registerMenuCommand("Detect Videos",function(event){ findVideos((url, name)=>{ if(name = prompt("Download? \n"+ url, name)){ GM_download(url, name); console.log("start download: "+name); } }); // },"d"); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址