您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
REQUIRES https://addons.mozilla.org/en-US/firefox/addon/cors-everywhere/ or similar addon that modifies CORS headers to work!
// ==UserScript== // @name DoujinStyle Auto Redirect to download // @namespace Violentmonkey Scripts // @match https://doujinstyle.com/?p=page&type=1&id=* // @grant none // @version 1.1 // @author moh // @license MIT // @icon https://www.google.com/s2/favicons?sz=64&domain=doujinstyle.com // @description REQUIRES https://addons.mozilla.org/en-US/firefox/addon/cors-everywhere/ or similar addon that modifies CORS headers to work! // ==/UserScript== (async function() { 'use strict'; const form = document.querySelector('mainbar form'); const result = await fetch(form.action, { "headers": { "Content-Type": "application/x-www-form-urlencoded", }, "body": (new URLSearchParams(new FormData(form))) + '&download_link=', "method": "POST", "redirect": "follow" }); window.location = result.url; })();