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