// Google Redux 1.4 // 2006-03-14 // Copyright (c) 2006, Tristan Dunn // Released under the GPL license // http://www.gnu.org/copyleft/gpl.html // // Implementation of Google Redux by Tristan Dunn // (http://buckymatters.com/), design originally by Andy Rutledge. // (http://andyrutledge.com/google-redux.php) // // Thanks to everyone for their comments and suggestions! // // Edited by: Fabien Pennequin (http://forums.invisionboard.fr/blog/fabien/) // -------------------------------------------------------------------- // // This is a Greasemonkey user script. // // To install, you need Greasemonkey:http://greasemonkey.mozdev.org/ // Then restart Firefox and revisit this script. // Under Tools, there will be a new menu item to "Install User Script". // Accept the default configuration and install. // // To uninstall, go to Tools/Manage User Scripts, // select "Google Redux", and click Uninstall. // // -------------------------------------------------------------------- // // ==UserScript== // @name Google Redux // @namespace http://buckymatters.com/googleredux/ // @description Implementation of Google Redux by Tristan Dunn, design concept originally by Andy Rutledge. // @include http://google.tld/ // @include http://google.tld/#* // @include http://www.google.tld/ // @include http://www.google.tld/#* // @include http://google.tld/webhp // @include http://google.tld/webhp#* // @include http://www.google.tld/webhp // @include http://www.google.tld/webhp#* // ==/UserScript== document.getElementsByTagName('head')[0].removeChild(document.getElementsByTagName('style')[0]); var account = '
  • Connexion
  • '; if (document.body.innerHTML.indexOf('>Déconnexion') != -1) { account = '
  • Mon Compte
  • Déconnexion
  • '; } var checkbox = ''; if (document.getElementById('cty')) { checkbox = ''; } document.body.innerHTML = '

    Google

    Recherche
    ' + checkbox + '
    '; var current = 'web'; document.getElementById(current).className = 'active'; addEvent(document.getElementById('web'), 'click', activate); addEvent(document.getElementById('images'), 'click', activate); addEvent(document.getElementById('groups'), 'click', activate); addEvent(document.getElementById('news'), 'click', activate); addEvent(document.getElementById('froogle'), 'click', activate); addEvent(document.getElementById('local'), 'click', activate); function activate(e) { document.getElementById(current).className = ''; current = this.id; document.getElementsByTagName('form')[0].action = this.href; document.getElementById(current).className = 'active'; document.getElementById('q').focus(); if (current != 'web') { document.getElementById('lucky').style.display = 'none'; document.getElementById('cty').style.display = 'none'; document.getElementById('cty_label').style.display = 'none'; } else { document.getElementById('lucky').style.display = 'inline'; document.getElementById('cty').style.display = 'inline'; document.getElementById('cty_label').style.display = 'inline'; } e.preventDefault(); return false; } // By John Resig -- http://ejohn.org/projects/flexible-javascript-events/ function addEvent(obj,type,fn){if(obj.attachEvent){obj['e'+type+fn]=fn;obj[type+fn]=function(){obj['e'+type+fn](window.event);};obj.attachEvent('on'+type,obj[type+fn]);}else obj.addEventListener(type,fn,false);} document.getElementById('q').focus();