Add Link to a Tektek Search for Gaia Items

Adds a link for a tektek search for the gaia item you are viewing.

Versione datata 25/05/2014. Vedi la nuova versione l'ultima versione.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name           Add Link to a Tektek Search for Gaia Items
// @description    Adds a link for a tektek search for the gaia item you are viewing.
// @include        http://www.gaiaonline.com/marketplace/itemdetail/*
// @include        http://gaiaonline.com/marketplace/itemdetail/*
// @version 0.0.1.20140525024113
// @namespace https://greatest.deepsurf.us/users/2178
// ==/UserScript==
var get = document.getElementById('vend_item_title');
for (x=0;x<=x+x;x++) {
	if ( !(get.innerHTML.match(unescape('%20%20'))==null) || !(get.innerHTML.match(unescape('%0A'))==null) ) {
		get.innerHTML=get.innerHTML.replace(unescape('%20%20'),unescape('%20'));
		get.innerHTML=get.innerHTML.replace(unescape('%0A'),unescape('%20'));
	} else {
		break;
	}
}
if (get.innerHTML.charAt(unescape(get.innerHTML.length-1))==unescape('%20')) {
get.innerHTML=get.innerHTML.slice(0,get.innerHTML.length-1);
}
get.innerHTML='<table width="98%"><tr><td>'+get.innerHTML+'<td align="right">Search <a target="_blank" href="http://tektek.org">Tektek.org</a> for <a href="http://www.tektek.org/gaia/item_search.php?s='+get.innerHTML.replace(/ /,'&#32;')+'" target="_blank">'+get.innerHTML+'</a></td></tr></table>';