Created
May 16, 2018 16:35
-
-
Save 409H/1862227d224df531808af7393fd4b841 to your computer and use it in GitHub Desktop.
OZBpXy
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
var objEalInstalled = document.getElementById("ext-etheraddresslookup-signature"); | |
if(objEalInstalled===null){ | |
var objGetEal = document.createElement('div'); | |
objGetEal.id = "ext-etheraddresslookup-signature"; | |
objGetEal.innerHTML = "<input type='checkbox' checked /><div><img src='https://github.com/409H/EtherAddressLookup/blob/master/images/icon.png?raw=true' /> <span>EtherAddressLookup</span><p>Install <a href='https://chrome.google.com/webstore/detail/etheraddresslookup/pdknmigbbbhmllnmgdfalmedcmcefdfn'>EtherAddressLookup</a> to stay better protected.</p></div>"; | |
document.body.appendChild(objGetEal); | |
} |
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
div { | |
position: fixed; | |
top: 1em; | |
right: 1em; | |
input[type="checkbox"] { | |
background:red; | |
z-index: 5; | |
position: relative; | |
border: none; | |
-webkit-appearance: initial; | |
} | |
input[type="checkbox"]:checked:after { | |
content: "\274C"; | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
-webkit-transform: translate(-50%,-50%); | |
-moz-transform: translate(-50%,-50%); | |
-ms-transform: translate(-50%,-50%); | |
transform: translate(-50%,-50%); | |
} | |
input[type="checkbox"]:not(:checked) ~ div { | |
display: none; | |
} | |
> div { | |
width: 15em; | |
border-radius: 1em; | |
border: 0.5em solid rgba(255, 255, 158, 0.5); | |
-webkit-background-clip: padding-box; | |
background-clip: padding-box; | |
padding: 1em; | |
background-color: rgb(255, 255, 128); | |
font-family: "Arial"; | |
img { | |
display: inline; | |
} | |
span { | |
display: inline-block; | |
font-weight: 800; | |
font-size: 13pt; | |
vertical-align: middle; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment