Google classic home

Brings back border edges and the old color scheme on google search results

Click here to install Browse More Scripts
// ==UserScript==
// @name         Google classic home
// @namespace    8c27e26611d1df025315abe227267ac6fbe7c2e1
// @version      0.4
// @description  Brings back border edges and the old color scheme on google search results
// @author       /u/AyrA_ch
// @include      http://*.google.*/*
// @include      https://*.google.*/*
// @run-at       document-body
// @grant        none
// ==/UserScript==


// Version History
// 0.4 Update for new layout
// 0.3 Grey Background for search bar
// 0.2 Video Thumbnails have a different element and class for some reason
// 0.1 First Version
(function () {
	'use strict';
	//The way we use the @include is unsupported (can't use * as TLD)
	//It works for now, but if it breaks, we let the script run on all pages
	//and activate the statement below
	if (true || location.hostname.match(/(www\.)?google(\.co)?\.\w+$/)) {
		//Made this a function so we can add multiple styles if the page becomes more of a clusterfuck
		var addStyle = function (style) {
			var s = document.createElement("style");
			s.textContent = style;
			document.head.appendChild(s);
			return s;
		};
		//Make corners square (thumbnails, search bar and the generic "see this" result)
		addStyle("g-inner-card,.cv2VAd,.kp-blk,.RNNXgb,.aajZCb{border-radius:0px !important;}");
		//Change color for static search background
		addStyle(".sfbgx{background-color:#EEE !important;position:relative !important;}");
		//Change color for dynamic search background
		addStyle(".sfbg.nojsv{background-color:#EEE !important;}");
	}
})();

/*
LICENSE:
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
The full license text can be found here: http://creativecommons.org/licenses/by-nc-sa/4.0/
The link has an easy to understand version of the license and the full license text.

DISCLAIMER:
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
*/

Copyright © 2018 by Kevin Gut 📧 | More services | Generated for 98.80.143.34