KongSearch *OLD*

Links Kong search to Google

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           KongSearch *OLD*
// @namespace      Kongregate
// @description    Links Kong search to Google
// @version        1.0
// @include        http://kongregate.com/*
// @include        http://www.kongregate.com/*
// ==/UserScript==
(function(){
window.addEventListener('load', function(event) {
   Element=unsafeWindow['Element'];
   
   var div = document.getElementById('search');
   div.style.width='310px';
   
   var a=Element.extend(document.createElement('input'));
   a.type='submit';
   a.value='Google';
   a.innerHTML='Google';
   a.style.backgroundColor='#F0F0F0';
   a.style.borderColor='#F2F2F2 rgb(132, 132, 132) rgb(132, 132, 132) rgb(242, 242, 242)';
   a.style.borderStyle='solid';
   a.style.borderWidth='2px';
   a.style.fontSize='1em';
   a.style.color='#000000';
   a.style.textDecoration='';
   a.style.textTransform='';
   
   var dd=document.createElement('dd');
   div.getElementsByTagName('dl')[0].appendChild(dd);
   dd.appendChild(a);
   
   var i=div.getElementsByTagName('input')[0];
  
   a.addEventListener('click',function(e){
      e.preventDefault();
      window.location='http://google.com/search?q='+i.value+' site:kongregate.com';
      return (false);
   },false);
}, 'false');
})();