您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replace fake audiobookcup download links with real download links. You must start playing audiobook first so it can load the file src.
// ==UserScript== // @name Audiobookcup Download // @namespace http://hermanfassett.me // @version 0.1 // @description Replace fake audiobookcup download links with real download links. You must start playing audiobook first so it can load the file src. // @author You // @match https://www.audiobookcup.com/* // @icon https://www.google.com/s2/favicons?domain=audiobookcup.com // @grant none // ==/UserScript== (function() { 'use strict'; // Replace fake download links with actual download [...document.querySelectorAll("a[href='https://www.audiobookmax.com']")].forEach((a) => { a.onclick = function() { const audio = document.querySelector("#fwdeapdiv0 audio"); const title = document.querySelector("h1.entry-title").innerText || document.title; if (audio && audio.src) { this.href = audio.src; this.download = `${title}.mp3`; this.removeAttribute("target"); this.removeAttribute("rel"); } } }); })();