Created
December 27, 2018 14:53
-
-
Save tkrkt/e361f9db01eecb81ac563c9114347afd to your computer and use it in GitHub Desktop.
[userscript] [GoogleTranslate] Fix balloon styles
This file contains 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 [GoogleTranslate] Fix balloon styles | |
// @namespace https://gist.github.com/tkrkt | |
// @include http://translate.googleusercontent.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
const style = document.createElement("style"); | |
style.textContent = ` | |
.gmnoprint div[class^="SPRITE_iw"] { | |
display: none; | |
} | |
.gmnoprint > div:last-child { | |
background-color: white; | |
box-shadow: 0 0 0 8px white, 0 0 0 10px grey; | |
border-radius: 2px; | |
} | |
`; | |
document.head.appendChild(style); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment