Google Purple Theme

Replace google dark theme to purple Theme

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Google Purple Theme
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Replace google dark theme to purple Theme
// @author       fienestar
// @match        https://www.google.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    const style = document.createElement('style');
    style.innerHTML = `
.sfbg{
  background: #09001e !important;
}
#tsf > div:nth-child(1) > div:nth-child(1) > div:nth-child(2){
  border: none !important;
}
}
`;

    document.head.appendChild(style);

    [...document.querySelectorAll('style')].forEach(style => {
        let html = style.innerHTML;
        console.log('!');
        html = html.replace(/#202124/g, '#09001e')
        html = html.replace(/#303134/g, '#1a1539') // #303134 -> #24202d
        html = html.replace(/#3c4043/g, '#352f44')
        // html = html.replace(/#171717/g, '#110e18')
        html = html.replace(/#171717/g, '#09001e')
        html = html.replace(/#24202d/g, '#09001e')
        html = html.replace(/#c58af9/g, '#d3b2fe')
        style.innerHTML = html;
    });

    const gb = document.getElementById('gb');
    if(gb) gb.style.backgroundColor = ''
})();