您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This is a simple script that shows you direct a link to audio file that you want to download.
当前为
// ==UserScript== // @name Soundgasm.net Downloader // @description This is a simple script that shows you direct a link to audio file that you want to download. // @author q2p // @namespace q2p // @version 0.3 // @include http://soundgasm.net/u/*/* // @include https://soundgasm.net/u/*/* // @grant none // @run-at document-end // ==/UserScript== (function() { 'use strict'; window.addEventListener("load", () => { if (!document.getElementById("jquery_jplayer_1")) { return; } const interval = setInterval(() => { const src_el = document.getElementById("jp_audio_0"); const title_el = document.getElementsByClassName("jp-title"); if (src_el && title_el && title_el.length !== 0) { const src = src_el.src; const title = title_el[0].textContent; if (src && src.length > 4 && title) { clearInterval(interval); const link = document.createElement("a"); link.href = src; link.download = title+".m4a"; link.textContent = "Download Link"; document.body.appendChild(link); } } }, 200); }); })();