Greasy Fork is available in English.
把[图片下载器]的开关添加到[媒体资源嗅探及下载(支持下载m3u8和mp4视频和音频)]的功能列里面
当前为
// ==UserScript==
// @name 视频音频图片下载脚本整合器,手机可用,免键盘,免油猴菜单
// @namespace https://facaikotei.github.io/
// @version 5.0.1
// @description 把[图片下载器]的开关添加到[媒体资源嗅探及下载(支持下载m3u8和mp4视频和音频)]的功能列里面
// @author (c)2025 facaikotei
// @match *://*/*
// @grant GM_addElement
// @grant GM_addStyle
// @grant GM_setValue
// @grant GM_getValue
// @require https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/jwerty/0.3.2/jwerty.min.js
// @require https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/sentinel-js/0.0.5/sentinel.min.js
// @license MIT
// @homepageURL http://greasyfork.icu/scripts/529908
// ==/UserScript==
(function() {
'use strict';
sentinel.on(".MyBT", () => {
GM_addElement(document.querySelector(".MyBT"), "div", { id: "MyImage", class: "jianBian", textContent: "图片" });
GM_addElement(document.querySelector("#MyImage"), "div", { style: "opacity: 0;", textContent: "图片" });
GM_addStyle(".MyBT>div>div { width: 150px; }");
document.querySelector("#MyImage").onclick = () => {
jwerty.fire(GM_getValue("shortCutString", "alt+W"));
};
sentinel.off(".MyBT");
});
sentinel.on(".shortCutString", () => {
GM_setValue("shortCutString", document.querySelector(".shortCutString").value);
document.querySelector(".shortCutString").onchange = () => {
GM_setValue("shortCutString", document.querySelector(".shortCutString").value);
};
});
})();