GaiaOnline: Link Trade Items (Double Click)

Links trade items to a market search (only items that were in the trade window when it the page loaded)

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name           GaiaOnline: Link Trade Items (Double Click)
// @namespace      http://userscripts.org/users/62850
// @description    Links trade items to a market search (only items that were in the trade window when it the page loaded)
// @include        http://www.gaiaonline.com/gaia/bank.php*
// @version 0.0.1.20140525024111
// ==/UserScript==
var eles=document.getElementById('trade_panel');
if(eles){
	eles=eles.getElementsByClassName('item_image');
	for(var i=0;i<eles.length;i++){
		eles[i].setAttribute('ondblclick',"window.open('/marketplace/itemsearch/?search="+escape(eles[i].title)+"&filter=0&floor=0&ceiling=No+Limit')");
	}
}