// ==UserScript== // @name Load 720p magent links. - horriblesubs.info // @namespace Violentmonkey Scripts // @match https://horriblesubs.info/shows/*/ // @grant none // @version 1.0 // @author Joshua Cline // @description 12/15/2019, 11:16:20 AM // @downloadURL none // ==/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(500); } } async function load720magnets(){ await loadFullAnime() let links = document.querySelectorAll(".rls-link.link-720p .dl-type.hs-magnet-link a") for(let link of links){ window.open(link.href, "_blank"); } } window.loadFullAnime = loadFullAnime; window.load720magnets = load720magnets; document.querySelector(".episode-container h3").innerHTML += " - Load All 720p Links"; document.querySelector(".episode-container h3 #load720links").addEventListener("click", load720magnets);