您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Enables one-click DL archive downloading (GP/Credits are still required). Supports E-Hentai & EXHentai.
当前为
// ==UserScript== // @name E(x)-Hentai One-Click DL // @namespace https://github.com/DakuTree/userscripts // @author Daku ([email protected]) // @description Enables one-click DL archive downloading (GP/Credits are still required). Supports E-Hentai & EXHentai. // @homepageURL https://github.com/DakuTree/userscripts // @supportURL https://github.com/DakuTree/userscripts/issues // @include /^http[s]?:\/\/(g\.e-|ex)hentai\.org\/g\/.*$/ // @updated 2013-07-29 // @version 1.0.3 // ==/UserScript== var a = document.getElementsByClassName('g2')[0].getElementsByTagName('a')[0]; var xs = a.getAttributeNode('onclick').nodeValue.split('?')[1].split("'")[0]; a.removeAttribute('onclick'); a.addEventListener('click', function() { var http = new XMLHttpRequest(); var params = "dlcheck=Download Archive"; http.open("POST", location.origin+'/archiver.php?'+xs, true); //TODO: Check if location.origin is correct http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.onreadystatechange = function() { if(http.readyState == 4 && http.status == 200) { if(http.responseText.indexOf("Please wait...") !== -1){ //Check if pop-up opened. var match = /<a href="(http.*?)"/g.exec(http.responseText); window.location.href = match[1] + "?start=1"; } } } http.send(params); return false }, false);