Google Logo Replacer

Replaces google logo on search and image page

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Google Logo Replacer
// @namespace    https://greasyfork.org/en/users/86284-benjababe
// @version      1.02
// @description  Replaces google logo on search and image page
// @author       Benjababe
// @license      MIT

// @match        https://*.google.com/*
// @match        https://*.google.com/sg/*

// @grant        GM_addStyle
// ==/UserScript==

// jshint esversion: 6

(function () {
    'use strict';
    const SEARCH_URL = "https://i.imgur.com/8nBk4bu.png",
        IMAGE_URL = "https://i.imgur.com/oJzo0UN.png";

    GM_addStyle(`
        img.lnXdpd, img#hplogo {
        /* Google logo on google.com */
            content: url(${SEARCH_URL});
            height:310px;
            max-height:310px;
            width:600px;
            max-width:600px;
            margin-top:-168px;
            display:inline-block;
        }

        div[title="Google Images"] {
        /* Google logo on images.google.com */
            content:""!important;
            background:url(${IMAGE_URL})no-repeat!important;
            background-size: 800px 271px!important;
            z-index:-1!important;
            height:271px!important;
            width:800px!important;
            margin-top: -158px!important;
            position:relative!important;
        }

        /* Search bar container */
        .sfbg {
	        background: transparent!important;
        }

        /* Offset top by 110px because this laptop's shitty resolution */
        div.LLD4me {
        	margin-top: 110px;
        }

        div.logo-subtext {
           /* The "images" text below the google images logo */
            top:initial!important;
            left:initial!important;
            bottom:0!important;
            right:0!important;
        	position:absolute!important;
        }

        #prm {
            /* Nugget info below search bar */
            display:none!important;
        }
    `);
})();