Link Gaia Item's While Selling

Links the item's name to the item in the sell item page.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name           Link Gaia Item's While Selling
// @description    Links the item's name to the item in the sell item page.
// @include        http://www.gaiaonline.com/marketplace/mystore/sell/?item_id=*
// @include        http://gaiaonline.com/marketplace/mystore/sell/?item_id=*
// @version 0.0.1.20140525024114
// @namespace https://greasyfork.org/users/2178
// ==/UserScript==
var get = document.getElementById('vend_detail').getElementsByTagName('h1')[0];
var url =document.location.href;
var start = url.indexOf('=')+1;
var stop = url.indexOf('&');
var id= url.substring(start,stop);
get.innerHTML='<table width="98%"><tr><td><a target="_blank" href="/marketplace/itemdetail/'+id+'">'+get.innerHTML+'</a></td>'+'<td align="right">Search for <a href="http://www.tektek.org/gaia/item_search.php?s='+get.innerHTML.replace(/ /,'&#32;')+'" target="_blank">'+get.innerHTML+'</a> on <a target="_blank" href="http://tektek.org">Tektek.org</a></td></tr></table>';