Clean Up Google!

Removes doodles, ads, and many other annoyances on the Google main page

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Clean Up Google!
// @namespace   ic55-userscript-normalgoogle
// @description Removes doodles, ads, and many other annoyances on the Google main page
// @include     *www.google.*
// @version     1.01
// @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; height: 95px; width: 269px;';
logoSpace.insertBefore(newLogo, logoSpace.childNodes[0]);