您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Replaces the download link with a direct download link.
当前为
// ==UserScript== // @name GogoAnime Direct Download Button // @namespace http://tampermonkey.net/ // @version 2.0 // @description Replaces the download link with a direct download link. // @author Arjix // @match *://*.gogoanime.vc/* // @match *://*.gogoanime.tv/* // @match *://*.gogoanime.io/* // @match *://*.gogoanime.in/* // @match *://*.gogoanime.se/* // @match *://*.gogoanime.sh/* // @match *://*.gogoanime.video/* // @match *://*.gogoanime.movie/* // @match *://*.gogoanime.so/* // @match *://*.gogoanimes.co/* // @match *://*.animego.to/* // @grant GM_xmlhttpRequest // ==/UserScript== (function() { 'use strict'; window.addEventListener("load", function () { const title = document.title if (title.includes("Watch")) { const link = document.querySelector("li.dowloads").firstChild.href var ret = GM_xmlhttpRequest({ method: "GET", url: link, onload: function(res) { var videoLink = res.response.match("<a\n.*?[\"'](http.*?)['\"]")[1] document.querySelector("li.dowloads").firstChild.href = videoLink document.querySelector("li.dowloads").firstChild.download = document.querySelector("div.anime_video_body > h1").innerText.replace(" at gogoanime", "") + ".mp4" document.querySelector("li.dowloads > a > span").innerText = "Direct Download" } })} }, false) })();