您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a download link to Soundgasm.net links
// ==UserScript== // @name Soundgasm Downloader // @namespace https://github.com/RobertSagit/soundgasm-downloader // @version 1.1 // @description Add a download link to Soundgasm.net links // @author RobertSagit // @match http*://soundgasm.net/u/*/* // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... function gendownload() { var audioplayer = document.getElementById("jp_audio_0"); var description = document.getElementsByClassName("jp-description")[0]; var title = document.getElementsByClassName("jp-title")[0].innerHTML.replace(/[^a-z0-9]/gi, ''); // Debug code //console.log(`Audio source: ${audioplayer.src}`); description.innerHTML += `<br /><a href="${audioplayer.src}" download="${title}">Download File</a>`; } setTimeout(gendownload, 100); })();