Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. I've been using this userstyle for a long time, and I wanted to share it since it still works with Firefox Quantum.
  2.  
  3. /*
  4. * Originally from:
  5. * http://forums.mozillazine.org/viewtopic.php?p=14404121#p14404121
  6. */
  7.  
  8. #urlbar {
  9. position: relative;
  10. z-index: 1;
  11. }
  12. #identity-box:after {
  13. content: '';
  14. position: absolute;
  15. height: 100%;
  16. width: 100%;
  17. top: 0;
  18. left: 0;
  19. pointer-events: none;
  20. z-index: -1;
  21. background: white;
  22. opacity: 0.2;
  23. }
  24.  
  25. /* There is also grantedPermissions, but irrelevant. */
  26.  
  27. /* about:about */
  28. #urlbar[pageproxystate='valid'] #identity-box.unknownIdentity:after {
  29. background: #ff0039; /* Firefox Red 50 */
  30. }
  31. /* about:config */
  32. #urlbar[pageproxystate='valid'] #identity-box.chromeUI:after {
  33. background: #0a84ff; /* Firefox Blue 50 */
  34. }
  35. /* uBlock Origin Dashboard */
  36. #urlbar[pageproxystate='valid'] #identity-box.extensionPage:after {
  37. background: #45a1ff; /* Firefox Blue 40 */
  38. }
  39. /* https://www.github.com/ */
  40. #urlbar[pageproxystate='valid'] #identity-box.verifiedIdentity:after{
  41. background: #058b00; /* Firefox Green 70 */
  42. }
  43. /* https://www.google.com/ */
  44. #urlbar[pageproxystate='valid'] #identity-box.verifiedDomain:after{
  45. background: #12bc00; /* Firefox Green 60 */
  46. }
  47. /* https://mixed-script.badssl.com/ */
  48. #urlbar[pageproxystate='valid'] #identity-box.mixedActiveBlocked:after {
  49. background: #30e60b; /* Firefox Green 50 */
  50. }
  51. /* https://mixed.badssl.com/ */
  52. #urlbar[pageproxystate='valid'] #identity-box.mixedDisplayContent:after {
  53. background: #d7b600; /* Firefox Yellow 60 */
  54. }
  55. /* https://very.badssl.com/ */
  56. #urlbar[pageproxystate='valid'] #identity-box.mixedDisplayContentLoadedActiveBlocked:after {
  57. background: #d7b600; /* Firefox Yellow 60 */
  58. }
  59. /* https://self-signed.badssl.com/ but add certificate exception */
  60. #urlbar[pageproxystate='valid'] #identity-box.certUserOverridden:after {
  61. background: #ffe900; /* Firefox Yellow 50 */
  62. }
  63. /* Don't know an example for this */
  64. #urlbar[pageproxystate='valid'] #identity-box.weakCipher:after {
  65. background: #a47f00; /* Firefox Yellow 70 */
  66. }
  67. /* https://mixed-script.badssl.com/ but disable protection */
  68. #urlbar[pageproxystate='valid'] #identity-box.mixedActiveContent:after {
  69. background: #d70022; /* Firefox Red 60 */
  70. }
  71. /* http://http-login.badssl.com/ */
  72. #urlbar[pageproxystate='valid'] #identity-box.insecureLoginForms:after {
  73. background: #a4000f; /* Firefox Red 70 */
  74. }
  75.  
  76. Screenshot is with a live boot of Debian XFCE changed to Adwaita theme, with a clean Firefox 57 profile.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement