您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
小猴皮皮的资源下载网站(https)使用了http的资源链接,导致下载不正常。现将资源的下载链接提取出来,附在页面上,点击即可下载。
// ==UserScript== // @name 小猴皮皮点读笔下载地址获取 // @namespace https://github.com/tsccai // @version 0.1 // @description 小猴皮皮的资源下载网站(https)使用了http的资源链接,导致下载不正常。现将资源的下载链接提取出来,附在页面上,点击即可下载。 // @author Tsccai // @match https://piyopen.lovereadingbooks.com/content/* // @icon https://www.lovereadingbooks.com/themes/contrib/bootstrap/logo.svg // @license MIT // @grant GM_openInTab // ==/UserScript== (function () { 'use strict'; const RES_BASE_URL = 'https://p.lovereadingbooks.com/api/v1/content?_format=json&page=0&id='; const id = window.location.pathname.replace('/content/', ''); getLinks(); async function getLinks() { const json = await (await fetch(RES_BASE_URL + id)).json(); //console.log(json); const ele_books = document.querySelectorAll('.ant-list-item-main'); let cnt = 0; for (let i of ele_books) { const anchor = document.createElement('a'); anchor.target = ":blank"; anchor.innerHTML = i.querySelector('i').innerHTML.replace('currentColor', 'red'); //anchor.innerHTML = anchor.innerHTML.replace('currentColor','red'); //anchor.innerHTML='真下载地址'; anchor.href = json[cnt].fileUrl; anchor.addEventListener('click', startDownload); i.querySelector('i').remove(); i.querySelector('.ant-list-item-action span').appendChild(anchor); cnt++; } cnt = 0; function startDownload(evt) { const url = evt.target.parentElement.href; GM_openInTab(url); } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址