From 5e93d866ad1f66d2a2fe8fff0e2e2cbe8dc56e4a Mon Sep 17 00:00:00 2001
From: chylex <info@chylex.com>
Date: Wed, 10 Aug 2016 01:17:26 +0200
Subject: [PATCH] Fix missing fav/rt indicators in design-revert plugin

Closes #51
---
 Resources/Plugins/design-revert/browser.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Resources/Plugins/design-revert/browser.js b/Resources/Plugins/design-revert/browser.js
index 6c2012b2..7026a247 100644
--- a/Resources/Plugins/design-revert/browser.js
+++ b/Resources/Plugins/design-revert/browser.js
@@ -5,8 +5,10 @@ enabled(){
   document.head.appendChild(style);
 
   var sheet = style.sheet;
-  sheet.insertRule(".tweet-actions { float: right !important; width: auto !important; visibility: hidden; }",0);
-  sheet.insertRule(".tweet-actions:hover { visibility: visible; }",0);
+  sheet.insertRule(".tweet-actions { float: right !important; width: auto !important; }",0);
+  sheet.insertRule(".tweet-action { opacity: 0; }",0);
+  sheet.insertRule(".is-favorite .tweet-action, .is-retweet .tweet-action { opacity: 0.5; }",0);
+  sheet.insertRule(".tweet:hover .tweet-action, .is-favorite .tweet-action[rel='favorite'], .is-retweet .tweet-action[rel='retweet'] { opacity: 1; }",0);
   sheet.insertRule(".tweet-actions > li:nth-child(4) { margin-right: 2px !important; }",0);
 
   // revert small links around the tweet