Greasy Fork

Greasy Fork is available in English.

Clean Up Google!

Get the clean and simple Google back! This script removes doodles, ads and many other annoyances on the Google main page.

当前为 2014-06-25 提交的版本,查看 最新版本

// ==UserScript==
// @name        Clean Up Google!
// @namespace   ic55-userscript-normalgoogle
// @description Get the clean and simple Google back! This script removes doodles, ads and many other annoyances on the Google main page.
// @include     *www.google.*
// @version     1.0
// @grant       none
// ==/UserScript==

//define elements to be removed
var gLogo = document.getElementById('hplogo'); //any logo + share buttons
var chromeAd = document.getElementById('prt'); //advertisment for Google Chrome
var textAd = document.getElementById('prm-pt'); //text below search bar
//define required elements for logo change
var newLogo = document.createElement('img');
var logoSpace = document.getElementById('lga');

//remove elements
chromeAd.parentNode.removeChild(chromeAd);
textAd.parentNode.removeChild(textAd);
gLogo.parentNode.removeChild(gLogo);

//insert new logo
newLogo.id = 'hplogo'; //must be hplogo to hide on auto search
newLogo.src = 'http://www.google.com/images/srpr/logo9w.png';
newLogo.style = 'padding-top: 110px'
logoSpace.insertBefore(newLogo, logoSpace.childNodes[0]);