dlEHAuto

English: Add a download button with white arrow icon and green background on each link in the gallery list page of e-hentai gallery and ex-hentai. Click on it will download the archive of this gallery without payment confirm. Click on the "Archive Download" link on the galleary page will also start the automatic download progress. 中文:在易恒泰画廊以及EX的列表页中,在每一行作品链接后添加一个绿底白箭头,点击这个链接会进入自动下载压缩文件流程(不会询问是否确认支付C,GP等),另外,在每一个作品页,以点击下载压缩文件的操作启动自动下载压缩文件的流程(不询问是否确认支付同上)

21.08.2015 itibariyledir. En son verisyonu görün.

// ==UserScript==
// @name        dlEHAuto
// @namespace   http://dlEHAuto.Satoshi/
// @version     0.5
// @description English: Add a download button with white arrow icon and green background on each link in the gallery list page of e-hentai gallery and ex-hentai. Click on it will download the archive of this gallery without payment confirm. Click on the "Archive Download" link on the galleary page will also start the automatic download progress. 中文:在易恒泰画廊以及EX的列表页中,在每一行作品链接后添加一个绿底白箭头,点击这个链接会进入自动下载压缩文件流程(不会询问是否确认支付C,GP等),另外,在每一个作品页,以点击下载压缩文件的操作启动自动下载压缩文件的流程(不询问是否确认支付同上)
// @require     http://code.jquery.com/jquery-1.9.0.min.js
// @match       http://exhentai.org/*
// @match       http://g.e-hentai.org/*
// @include     /http:\/\/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/archive\/.*/
// @license     GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @copyright   2015.08.20  Satoshi
// ==/UserScript==

$().ready(function(){
	var loc = window.location.href;
	var link = $(".it5 > a");
	if(link.length > 0){
		link.each(function(){
			var it3 = $("<div/>",{class:"it3"});
			var i = $("<div/>",{class:"i"});
			var href = $(this).attr("href");
			var a = $("<a/>",{rel:"nofollow",href:href}).click(function(e){
				window.localStorage.setItem(href,true);
			});
			var icon = $("<img/>",{src:"http://exhentai.org/img/t.png",class:"n",alt:"T",title:"Torrents exist for this gallery"});
			var auto = it3.append(i.append(a.append(icon)));
			$(this).parent().after(auto);
		});
	}
	else if(loc.match(/http\:\/\/[^\/]*\/g\/\d*\/[^\/]*\//) != null){
		if(window.localStorage.getItem(loc) != null && window.localStorage.getItem(loc)){
			window.localStorage.removeItem(loc);
			$(".g2.gsp").children('a').eq(0).click();
		}
	}
	else if($(".stdbtn").length>0){
		$(".stdbtn").click();
	}
	else if($("#db > p > a").length > 0){
		if("Click Here To Start Downloading"==$("#db > p > a").text()){
			$("#db > p > a").get(0).click();
			setTimeout(function(){
				window.opener = null;
				window.open('','_self');
				window.close();
			},60000);
		}
	}
});