= function(tag){ if (searchshield.DoesURLContain(tag.href, this.search.uri.host)) return false; var parentNode = tag.parentNode; if (parentNode) { var grandParentNode = tag.parentNode.parentNode; if ((parentNode.tagName == "SPAN") && ((parentNode.className.toLowerCase() == "sklik-url") || (parentNode.className.toLowerCase() == "sklik-title"))) { // locate the real url and unencode it var urlPos = tag.href.indexOf("&url=http"); if (urlPos != -1) { urlPos += 5; outHref = tag.href.substring(urlPos); outHref = unescape(outHref); return outHref; } } else if (grandParentNode) { var greatGrandParentNode = tag.parentNode.parentNode.parentNode; if ((grandParentNode.tagName == "DIV") && ((grandParentNode.className.toLowerCase() == "text") || (grandParentNode.className.toLowerCase() == "hlasky otz"))) { // standard link return tag.href; } else if (greatGrandParentNode && greatGrandParentNode.tagName == "DIV" && (greatGrandParentNode.className.toLowerCase() == "hotlinks")) { // hint link return tag.href; } } } return false;};searchshield.SeznamSearchEngine.prototype.updateImage = function (hash, search, score, image, alt_image, flyover, click_thru, altClick_thru){ this.elementAttribute = { width: "18", height: "18" }; this.updateImageStyle = { width: "18px", height: "18px" }; var parent = searchshield.SearchEngine.prototype.updateImage; return parent.call(this, hash, search, score, image, alt_image, flyover, click_thru, altClick_thru);};/////////////// SEZNAM SEARCH ENGINE ////////////////////////////// WEBHLEDANI SEARCH ENGINE ///////////////searchshield.WebhledaniSearchEngine = function(search){ searchshield.SearchEngine.call(this, search);};searchshield.WebhledaniSearchEngine.prototype = new searchshield.SearchEngine();searchshield.WebhledaniSearchEngine.prototype.constructor = searchshield.WebhledaniSearchEngine;searchshield.WebhledaniSearchEngine.prototype.name = "webhledani";searchshield.WebhledaniSearchEngine.prototype.validSearch = function(href){ var uri; if (typeof(this.search) === 'undefined' || null === this.search) uri = searchshield.parseLink(href); else uri = this.search.uri; if(!uri || !uri.host) return false; var domain= uri.host; // re stitch the uri path and query elements // to use existing logic var path = uri.path + uri.delimiter + uri.query; if ((domain.indexOf("webhledani.cz") > -1) && (path.indexOf("results.aspx?") == 0)) { return true; } return false;};searchshield.WebhledaniSearchEngine.prototype.includeLink = function(tag){ var parentNode = tag.parentNode; if (searchshield.DoesURLContain(tag.href, this.search.uri.host)) { if ( tag.href.indexOf("/redir.aspx?") != -1) { attrNode = tag.attributes; if ( attrNode == null ) return false; var outHref = attrNode.getNamedItem("onmouseover").nodeValue; if ( outHref == null ) return false; var findStr = "window.status="; if (outHref.indexOf(findStr)!= -1) { // get text before first semicolon var semicolon = outHref.indexOf(";"); if (semicolon > -1) outHref = outHref.substring(findStr.length, semicolon); // strip quotation marks outHref = outHref.replace(/['"]/g, ""); var space = outHref.indexOf(" "); var firstDot = outHref.indexOf("."); if ((space > -1) && (space < firstDot)) outHref = outHref.substring(space+1); outHref = searchshield.checkUrl(outHref); return outHref; } } } return false;};searchshield.WebhledaniSearchEngine.prototype.insertNodes = function(node, doc){ var element = node.element; var score = node.score; // for alt image if (score == searchshield.SCORE_SS_VERISIGN) return [element.nextSibling, element.parentNode]; // for verdict image var cN = element.childNodes; var cnLen = cN.length; for (var i=0; i < cnLen; i++) { if (cN[i].nodeType == 1 && cN[i].nodeName == 'SPAN' && cN[i].className == 'sl') { if (!this.cssUpdated) { this.cssUpdated = true; // need to add style to make verdicts display inline var docStyle = doc.styleSheets[0]; if (docStyle && docStyle.addRule) { //IE docStyle.addRule('#s a','display:inline'); docStyle.addRule('#s p a .sl','display:inline'); } else if (docStyle && docStyle.insertRule) { docStyle.insertRule('#s a {display:inline}', docStyle.cssRules.length); docStyle.insertRule('#s p a .sl {display:inline}', docStyle.cssRules.length); } } return [cN[i].nextSibling, cN[i].parentNode]; } } // don't display anything return [null, null];};/////////////// WEBHLEDANI SEARCH ENGINE ////////////////////////////// EBAY SEARCH ENGINE ///////////////searchshield.eBaySearchEngine = function(search){ searchshield.SearchEngine.call(this, search);};searchshield.eBaySearchEngine.prototype = new searchshield.SearchEngine();searchshield.eBaySearchEngine.prototype.constructor = searchshield.eBaySearchEngine;searchshield.eBaySearchEngine.prototype.name = "ebay";searchshield.eBaySearchEngine.prototype.validSearch = function(href){ var uri; if (typeof(this.search) === 'undefined' || null === this.search) uri = searchshield.parseLink(href); else uri = this.search.uri; if(!uri || !uri.host) return false; var domain= uri.host; // shop.ebay.xx // shop.xxxx.ebay.xx like shop.benl.ebay.be // search.auction.co.kr var path = uri.path