您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
12/15/2019, 11:16:20 AM
当前为
// ==UserScript== // @name Load 720p magent links. - horriblesubs.info // @namespace Violentmonkey Scripts // @match https://horriblesubs.info/shows/*/ // @grant none // @version 1.1 // @author Joshua Cline // @description 12/15/2019, 11:16:20 AM // ==/UserScript== function sleep(time){ return new Promise(res => setTimeout(res, time)); } async function loadFullAnime() { while(document.querySelector(".more-button")){ document.querySelector(".more-button").click(); await sleep(750); } } async function load720magnets(){ await loadFullAnime() let links = document.querySelectorAll(".rls-link.link-720p .dl-type.hs-magnet-link a") for(let link of links){ location.assign(link.href); } } window.loadFullAnime = loadFullAnime; window.load720magnets = load720magnets; document.querySelector(".episode-container h3").innerHTML += " - <span id='load720links'>Load All 720p Links</span>"; document.querySelector(".episode-container h3 #load720links").addEventListener("click", load720magnets);