电驴(电骡)链接增强[GM脚本]显示电驴链接的下载完成数和正下载数-[目前支持3个网站的显示]

上网、浏览、聊天、下载等
回复
头像
mickeywaley
帖子: 1427
注册时间: 2009-03-19 9:19
系统: ubuntu
来自: 江苏
联系:

电驴(电骡)链接增强[GM脚本]显示电驴链接的下载完成数和正下载数-[目前支持3个网站的显示]

#1

帖子 mickeywaley » 2009-09-07 3:04

新开个帖子收集整理下,目前支持3个网站的显示
emule Info
显示电驴链接的下载完成数和正下载数
官方最新下载:
http://userscripts.org/scripts/show/56497
官方最新直接安装:
http://userscripts.org/scripts/source/56497.user.js
====================================================
历史版本(建议安装3.0的,支持网站多)
见附件
====================================================
软件下载 :http://www.emule-project.net (不限制搜索)
-------
Screenshot-3.png
[*]1.电骡资源发布点:http://emule.ppcn.net/
-------
Screenshot-2.png
[*]2.verycd电驴发布点:http://www.verycd.com/ (这个软件就不要用了,功能太少,还容易挂,又限制资源搜索)
-------
Screenshot-21.png
[*]3.电骡发布站点: http://www.ied2k.com
-------
了解GM脚本:http://www.surfchen.org/wiki/GM%E8%84%9A%E6%9C%AC
GM脚本
出自SurfLib
GM就是GreaseMonkey的意思。它的作用就是允许你给页面添加一段Javascript脚本。脚本可以修改页面内容或者做其他JS能做的事情。这个脚本一般以.user.js结尾。
由于GM脚本易开发,易使用,所以目前互联网上有不计其数的GM脚本。而http://userscripts.org/,是GM脚本最集中的一个网站。目前几乎所有的主流浏览器都可以支持使用GM脚本。
目录
* 1 安装和使用
o 1.1 Firefox
o 1.2 Safari
o 1.3 Opera
安装和使用
Firefox
1. 安装GreaseMonkey扩展:https://addons.mozilla.org/firefox/addon/748
2. 安装之後,你每次打开一个.user.js,浏览器都会提醒你是否安装该脚本。例如这里(http://userscripts.org/scripts/show/55676)的Install按钮,就是一个到.user.js的链接。
Safari
需要装两个东西
1. 首先,安装SIMBL:http://www.culater.net/software/SIMBL/SIMBL.php
2. 然後,安装greasekit:http://8-p.info/greasekit
3. 安装之後,你每次打开一个.user.js,浏览器都会提醒你是否安装该脚本
Opera
opera需要设置一个存放GM脚本的目录,然後所有在其中的以.user.js的脚本都会被使用。设置方法如下:
首选项->高级->内容->Javascript选项->用户Javascript文件
==============================================================
3.0的代码 支持所有
---------------------------------------

代码: 全选

// ==UserScript==
// @name           emule
// @namespace      emule
// @description   
// @include        *
// @require 		http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js
// ==/UserScript==
//alert(location);
//<a ed2k="ed2k://|file|%5B%E9%9B%A8%E8%A1%80%5Dv1.06.rar|129190789|a50cddb65e821c7e3e2e71c1a5bd98ab|h=TABCQ56MJAGJD555VAMSOXOPZ5QAOBT6|/" href="ed2k://|file|%5B%E9%9B%A8%E8%A1%80%5Dv1.06.rar|129190789|a50cddb65e821c7e3e2e71c1a5bd98ab|h=TABCQ56MJAGJD555VAMSOXOPZ5QAOBT6|/">[闆ㄨ]v1.06.rar</a>
var emule_version = 0.3;
var allLinks;
function go(){
	allLinks = document.evaluate(
		'//a[starts-with(@href, "ed2k")]',document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
		//'//a',document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
	for (var i = 0; i < allLinks.snapshotLength; i++) {
		var thisLink = allLinks.snapshotItem(i);
		//GM_log(thisLink.href);
		var hash = thisLink.href.match(/\|(\d+)\|(\w{32})\|/);
		//GM_log(hash);
		if(hash){
			//http://www.power-portal.to/ed2kstats/ed2k?hash=A50CDDB65E821C7E3E2E71C1A5BD98AB
			//http://stat.verycd.com/counters/files/3cb037ccaf458a381b5509cc6a342f27735385600
			//http://stat.verycd.com/counters/files/87ce159bc0d9a8ad88293e25c111d4f9732702720
			//http://ed2k.shortypower.dyndns.org/?hash=55fd5417080b6efedea3d143cfbebd8b
			href = 'http://stat.verycd.com/counters/files/' + hash[2]+ hash[1];
			//href = 'http://ed2k.shortypower.dyndns.org/?hash=' + hash[2];
			//GM_log(href);
			GM_xmlhttpRequest({method: 'GET',url: href,onload: onreport});
		}
		//break;
	}
	var el = document.createElement("script");
	el.src="http://share.sourceforge.net/emulelink.js";
	el.type="text/javascript";
	document.body.insertBefore(el, document.body.lastChild);	
}
function onreport(responseDetails){
	//GM_log(responseDetails.responseText);
	
	//var ht = responseDetails.responseText.match(/<th>(\d+)<\/th>/g);
	
	
	//verycd
	//{"total_finished":"5851","total_start":"8946","week_finished":"510","week_start":"2925"};
	var finished = responseDetails.responseText.match(/"total_finished":"(\d+)"/);
	var start = responseDetails.responseText.match(/"total_start":"(\d+)"/);
	//VeryCD.Files.Count._3cb037ccaf458a381b5509cc6a342f27735385600
	var hash = responseDetails.responseText.match(/VeryCD.Files.Count._(\w{32})/);
	
	
	//<title>ed2k stats - 63CE09D74458A72DFC93845D1E5EB887</title>
	//ed2k::55FD5417080B6EFEDEA3D143CFBEBD8B
	//var hash = responseDetails.responseText.match(/ed2k::(\w{32})/);
	//GM_log(starts);
	//GM_log(hash);
	if(hash){
		if(finished && start){
			keyong = start[1] - finished[1];
			if(keyong<0)
				keyong=0
			finished = finished[1];
		}else{
			keyong = '0';
			finished = '0';
		}
		//GM_log(ht);
		hash = hash[1];
		for (var i = 0; i < allLinks.snapshotLength; i++) {
			var thisLink = allLinks.snapshotItem(i);
			//GM_log(hash);
			//GM_log(thisLink.href);
			if(thisLink.href.match(new RegExp(hash,"i"))){
				//GM_log('ok');
				newElement = document.createElement('a');
				//var downloading = starts - finished;
				newElement.innerHTML = '<strong>['+keyong+':'+finished+']</strong>';
				newElement.title = '涓嬭浇婧愭暟:'+keyong+'  瀹屾垚鏉ユ簮:'+finished+'';
				newElement.href = 'http://share.sourceforge.net/emulelink.php?hash=' + hash;
				newElement.target = "_blank";
				//GM_log(newElement.innerHTML);
				thisLink.parentNode.insertBefore(newElement, thisLink.nextSibling);
				break;
			}
		}
	}
}
go();
==============================================================

==============================================================
3.01的代码只支持 verycd
----------------------------------

代码: 全选

// ==UserScript==
// @name           emule
// @namespace      emule
// @description   
// @include        *verycd.com/*
// @require 		http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js
// @version     0.3.1
// ==/UserScript==
//alert(location);
//<a ed2k="ed2k://|file|%5B%E9%9B%A8%E8%A1%80%5Dv1.06.rar|129190789|a50cddb65e821c7e3e2e71c1a5bd98ab|h=TABCQ56MJAGJD555VAMSOXOPZ5QAOBT6|/" href="ed2k://|file|%5B%E9%9B%A8%E8%A1%80%5Dv1.06.rar|129190789|a50cddb65e821c7e3e2e71c1a5bd98ab|h=TABCQ56MJAGJD555VAMSOXOPZ5QAOBT6|/">[闆ㄨ]v1.06.rar</a>

var allLinks;
function go(){
	allLinks = document.evaluate(
		'//a[starts-with(@href, "ed2k")]',document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
		//'//a',document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
	for (var i = 0; i < allLinks.snapshotLength; i++) {
		var thisLink = allLinks.snapshotItem(i);
		//GM_log(thisLink.href);
		var hash = thisLink.href.match(/\|(\d+)\|(\w{32})\|/);
		//GM_log(hash);
		if(hash){
			//http://www.power-portal.to/ed2kstats/ed2k?hash=A50CDDB65E821C7E3E2E71C1A5BD98AB
			//http://stat.verycd.com/counters/files/3cb037ccaf458a381b5509cc6a342f27735385600
			//http://stat.verycd.com/counters/files/87ce159bc0d9a8ad88293e25c111d4f9732702720
			//http://ed2k.shortypower.dyndns.org/?hash=55fd5417080b6efedea3d143cfbebd8b
			href = 'http://stat.verycd.com/counters/files/' + hash[2]+ hash[1];
			//href = 'http://ed2k.shortypower.dyndns.org/?hash=' + hash[2];
			//GM_log(href);
			GM_xmlhttpRequest({method: 'GET',url: href,onload: onreport});
		}
		//break;
	}
	var el = document.createElement("script");
	el.src="http://share.sourceforge.net/emulelink.js";
	el.type="text/javascript";
	document.body.insertBefore(el, document.body.lastChild);	
}
function onreport(responseDetails){
	//GM_log(responseDetails.responseText);
	
	//var ht = responseDetails.responseText.match(/<th>(\d+)<\/th>/g);
	
	
	//verycd
	//{"total_finished":"5851","total_start":"8946","week_finished":"510","week_start":"2925"};
	var finished = responseDetails.responseText.match(/"total_finished":"(\d+)"/);
	var start = responseDetails.responseText.match(/"total_start":"(\d+)"/);
	//VeryCD.Files.Count._3cb037ccaf458a381b5509cc6a342f27735385600
	var hash = responseDetails.responseText.match(/VeryCD.Files.Count._(\w{32})/);
	
	
	//<title>ed2k stats - 63CE09D74458A72DFC93845D1E5EB887</title>
	//ed2k::55FD5417080B6EFEDEA3D143CFBEBD8B
	//var hash = responseDetails.responseText.match(/ed2k::(\w{32})/);
	//GM_log(starts);
	//GM_log(hash);
	if(hash){
		if(finished && start){
			keyong = start[1] - finished[1];
			if(keyong<0)
				keyong=0
			finished = finished[1];
		}else{
			keyong = '0';
			finished = '0';
		}
		//GM_log(ht);
		hash = hash[1];
		for (var i = 0; i < allLinks.snapshotLength; i++) {
			var thisLink = allLinks.snapshotItem(i);
			//GM_log(hash);
			//GM_log(thisLink.href);
			if(thisLink.href.match(new RegExp(hash,"i"))){
				//GM_log('ok');
				newElement = document.createElement('a');
				//var downloading = starts - finished;
				newElement.innerHTML = '<strong>['+keyong+':'+finished+']</strong>';
				newElement.title = '涓嬭浇婧愭暟:'+keyong+'  瀹屾垚鏉ユ簮:'+finished+'';
				newElement.href = 'http://share.sourceforge.net/emulelink.php?hash=' + hash;
				newElement.target = "_blank";
				//GM_log(newElement.innerHTML);
				thisLink.parentNode.insertBefore(newElement, thisLink.nextSibling);
				break;
			}
		}
	}
}
go();
==============================================================
56497.user.js.tar.gz
(1.57 KiB) 已下载 56 次
3.0的
56497-3.01.user.js.tar.gz
(1.58 KiB) 已下载 54 次
3.01的
Firefox_GreaseMonkey扩展.tar.gz
(113.23 KiB) 已下载 57 次
上次由 mickeywaley 在 2009-10-05 11:19,总共编辑 2 次。
头像
mickeywaley
帖子: 1427
注册时间: 2009-03-19 9:19
系统: ubuntu
来自: 江苏
联系:

Re: 电驴(电骡)链接增强[GM脚本]显示电驴链接的下载完成数和正下载数

#2

帖子 mickeywaley » 2009-09-07 3:22

所有电驴软件下载http://www.dianlv.com/

* 电驴破解版(破解搜索限制)
本站破解的无搜索限制版本,去除了原版的所有搜索限制。
下载电驴破解版(破解搜索限制)http://dianlvcom.googlecode.com/files/dianlv-setup.exe
* VeryCD电驴原版
国内最大的电驴分享网站开发的电驴版本,支持内网穿透,下载速度最快,缺点是有搜索关键词屏蔽。
下载VeryCD电驴原版http://download.verycd.com/easyMule-Setup.exe
* eMule VeryCD版
在原版基础上增加了内网穿透等功能,大大提高了下载速度。
下载 eMule VeryCD版http://download.verycd.com/eMule-VeryCD-Setup.exe
* eMule
eMule原生版本,无任何附加功能,不支持内网穿透,不支持反吸血驴,不支持国旗显示。
下载 eMulehttp://sourceforge.net/projects/emule/
* Xtreme
最知名的Mod之一,不支持内网穿透。主要功能:Maella带宽控制系统,NAFC系统,反吸血驴等。
下载 Xtremehttp://sourceforge.net/projects/emulextreme/
* ScarAngel
ScarAngel是基于Xtreme的二次Mod,加入文件推送等功能,支持反吸血驴,不支持内网穿透。
下载 ScarAngelhttp://scarangel.sourceforge.net/
头像
yuishy
帖子: 81
注册时间: 2005-12-03 10:47

Re: 电驴(电骡)链接增强[GM脚本]显示电驴链接的下载完成数和正下载数-[目前支持3个网站的显示]

#3

帖子 yuishy » 2009-09-23 13:19

这些都不能用,直接上MLDonkey
GNU是惠民的,它的存在,降低了整个社会的成本。这个成本,在微软和Mac那里,被称作“可挖掘利润”。

没有人可以拿知识讹诈社会。

我学习Linux的原因,是不想被那些搞计算机的人欺骗。
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 电驴(电骡)链接增强[GM脚本]显示电驴链接的下载完成数和正下载数-[目前支持3个网站的显示]

#4

帖子 wangdu2002 » 2009-09-23 13:21

楼主辛苦整理不易,不用也顶。 :em11
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 电驴(电骡)链接增强[GM脚本]显示电驴链接的下载完成数和正下载数-[目前支持3个网站的显示]

#5

帖子 eexpress » 2009-09-23 13:32

看了,只是不明白干嘛的。
● 鸣学
olusis
帖子: 7
注册时间: 2009-09-23 13:46

Re: 电驴(电骡)链接增强[GM脚本]显示电驴链接的下载完成数和正下载数-[目前支持3个网站的显示]

#6

帖子 olusis » 2009-09-23 14:29

感谢楼主的脚本,请问opera可以用吗?

另外帮楼主补充正宗电骡软件官方网址(电驴是edonkey,支持linux和mac,可惜已经倒闭,emule是电骡,国人误会还是很深呀)以及一些电骡版本介绍 :em04

和电驴那个已经倒闭的商业软件不同,电骡是开源的,所以版本和liunx的发行版一样多,但是由于中国国内的verycd公司制作了商业化的电骡版本,并被其取名“电驴”,好打起“电驴官方”的招牌(其实是假的),又被它们大量商业包装宣传,恐怕是引起误会的原因。

官方原版电骡(下载国内不流行的国外资源才推荐,因为国内吸血的太多): 图片
官方电骡主页:http://www.emule-project.net/

可惜电骡不是电驴,只能在windows下用,linux下可以用的有amule,xmule和mldonkey,
不过对于电骡爱好狂也可以wine一个电骡或电骡mod用,电骡官方有一个帮助和一些在linux下的bug说明:eMule on Linux with Wine mini-HOWTO

此外,官方电骡的论坛http://forum.emule-project.net里还有很多官方认可的版本发布,也就是mod。小弟初来乍到,故此介绍一二,高手不要拍砖呀: :em06

Xtreme(最流行的电骡修改版,下载国内资源推荐,可以反吸血):图片
http://forum.emule-project.net/index.ph ... pic=144662

MorphXT(资源发布者的利器,上传好手,可惜反吸血内置的,而且太旧,熟悉了以后推荐用stullemule代替):图片
http://forum.emule-project.net/index.ph ... opic=92428

ScarAngel(大名鼎鼎的天使骡,是基于xtreme的改版,功能更多,ADSL用户推荐):图片
http://forum.emule-project.net/index.ph ... pic=103882

StulleMule(是MorphXT的改版,也是上传好手):图片
http://forum.emule-project.net/index.ph ... opic=92428

Mephisto(恶魔骡,天使骡的改版,适合带宽能力强的用户):图片
http://forum.emule-project.net/index.ph ... pic=130206

NeoMule(有电骡之王或瑞士军刀级别的电骡美誉,支持内网互联,骨灰高手才能用好):图片
http://forum.emule-project.net/index.ph ... opic=90121

X-Ray(X射线电骡,反吸血能力比较强,可惜不能像官方版那样换皮肤很不爽):图片
http://forum.emule-project.net/index.ph ... pic=146031

MagicAngel (魔法天使骡,支持动态反吸血,基于MorphXT的改版,上传强):图片
http://forum.emule-project.net/index.ph ... pic=141833

EastShare(台湾人做的,基于MorphXT的改版,目前中国唯一被允许进入官方的电骡,很多功能被其他电骡采纳):图片
有自己的论坛:http://eastshare.tw/forumdisplay.php?fid=121

AcKroNiC(意大利人做的,有啥特点不清楚):图片
http://forum.emule-project.net/index.ph ... pic=146048

Sharkx(大鲨鱼电骡,只见过老外用):图片
http://forum.emule-project.net/index.ph ... pic=145749

Beba(骡子长头发了,囧):图片
http://forum.emule-project.net/index.ph ... opic=84237

其实到这里可以了解更多:
http://www.emule-mods.de/?mods=start
http://emule-fans.com/category/news/emule/
上次由 olusis 在 2009-09-23 14:36,总共编辑 1 次。
olusis
帖子: 7
注册时间: 2009-09-23 13:46

Re: 电驴(电骡)链接增强[GM脚本]显示电驴链接的下载完成数和正下载数-[目前支持3个网站的显示]

#8

帖子 olusis » 2009-09-23 14:38

不好意思,没注意看opera也可以,感谢楼主。 :em04
回复