Last active
June 2, 2018 16:25
-
-
Save ayosec/f162404dc67ade3fc2c43c46373d8a63 to your computer and use it in GitHub Desktop.
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
/* | |
* Tested with https://add0n.com/stylus.html in Firefox 60 | |
* | |
* Highlight <a> elements with href="http://..." | |
*/ | |
a[href^="http://"]:before { | |
content: "[!]"; | |
color: red; | |
} | |
a[href^="http://"]:focus:before, | |
a[href^="http://"]:hover:before { | |
content: "Link is not HTTPS!"; | |
position: absolute; | |
padding: 10px; | |
display: inline-block; | |
margin-top: -60px; | |
font-size: 20px; | |
border: 2px solid red; | |
color: red; | |
background-color: #fee; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment