Last active
January 17, 2020 10:51
-
-
Save martinratinaud/9d3e0d91603acf55af300c225ac6e9fb to your computer and use it in GitHub Desktop.
Tampermonkey script to remove new 2020 design from Google with big opaque links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google eyes-catching-design remover | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Will put a lower opacity on the url because since last update, it is too eye-catching for me | |
// @author Martin Ratinaud <[email protected]> | |
// @include /^https?://.*\.google\..*/*/ | |
// @grant none | |
// ==/UserScript== | |
// You're Remote and want to find your perfect spot on earth? Check out | |
// https://www.remote-family.com | |
function addGlobalStyle(css) { | |
var head, style; | |
head = document.getElementsByTagName('head')[0]; | |
if (!head) { return; } | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} | |
(function() { | |
'use strict'; | |
addGlobalStyle(` | |
.rc .r > a cite, | |
.rc .r > div { | |
opacity: 0.2; | |
} | |
.rc .r > a cite:hover, | |
.rc .r >div:hover { | |
opacity: 1; | |
} | |
`); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment