feedly_tweaks

small style tweaks for feedly news reader

  1. // ==UserScript==
  2. // @name feedly_tweaks
  3. // @namespace https://greasyfork.org/de/users/157797-lual
  4. // @match http*://*.feedly.com/*
  5. // @version 1.6
  6. // @description small style tweaks for feedly news reader
  7. // @author lual
  8. // @grant GM_addStyle
  9. // @grant GM_getResourceURL
  10. // ==/UserScript==
  11. // changes: 2017-11-01 publish on greasyfork
  12. // 2019-11-07 add styling for dark theme / bigger rowcount
  13. // 2019-11-07 bigger rowcount was to big ;)
  14. // 2022-11-10 convert deprecated @include to @match
  15. // 2024-01-17 fix some styles
  16. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  17. //GM_addStyle seems to work not correct - so we have to use an alternative:
  18. function addGlobalStyle(css) {
  19. var head, style;
  20. head = document.getElementsByTagName('head')[0];
  21. if (!head) { return; }
  22. style = document.createElement('style');
  23. style.type = 'text/css';
  24. style.innerHTML = css;
  25. head.appendChild(style);
  26. }
  27. // don't change font-weight for read lines
  28. addGlobalStyle('.fx .entry.u0.read .content .title { font-weight: bold !important;}');
  29.  
  30. // better visibility for current selected line
  31. addGlobalStyle('.selected { color: #A1A1A1 !important; background-color: #BBDCC6 !important;}');
  32. addGlobalStyle('.theme--dark .selected { color: rgba(255, 255, 255, 0.8) !important; background-color: #2bb24c !important;}');
  33. addGlobalStyle('.theme--dark .fx .entry.read .title { color: rgba(255, 255, 255, 0.6);}');
  34. addGlobalStyle('.theme--dark .fx .entry.u0 .summary { color: rgba(255, 255, 255, 0.8) !important; }');
  35. addGlobalStyle('.theme--dark .TitleOnlyLayout--selected { background-color: BBDCC6 !important;}');
  36.  
  37.  
  38. // rowcount bigger
  39. addGlobalStyle('.LeftnavListRow__count { font-size: 0.815rem; }');
  40. addGlobalStyle('.LeftnavListRow--selected .LeftnavListRow__count { font-size: 1.0rem; }');
  41.  
  42. // upgrade-button - yes, but not so obstrusive
  43. addGlobalStyle('.fx .button.primary.pro, .fx button.primary.pro, .fx-button.primary.pro { background-color: #0c0b0b1a;}');
  44. addGlobalStyle('.theme--dark .fx .button.primary.pro, .theme--dark .fx button.primary.pro, .theme--dark .fx-button.primary.pro {color: #818181; background-color: #0c0b0b1a;}');
  45. addGlobalStyle('.TopHeaderBar__actions button {color: #818181; background-color: #0c0b0b1a;}');