Google Purple Theme

Replace google dark theme to purple Theme

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==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 = ''
})();