Light Linux.org.ru

The light and clean theme for Linux.org.ru without login to the site.

  1. // ==UserScript==
  2. // @name Light Linux.org.ru
  3. // @description The light and clean theme for Linux.org.ru without login to the site.
  4. // @description:ru Светлая и очищенная тема для сайта Linux.org.ru без логина на сайт.
  5. // @namespace https://www.tampermonkey.net/
  6. // @match https://www.linux.org.ru/*
  7. // @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js
  8. // @version 1.8
  9. // @author Nikolay Raspopov
  10. // @homepage https://www.cherubicsoft.com/
  11. // @license MIT
  12. // @icon https://www.google.com/s2/favicons?domain=linux.org.ru
  13. // @grant none
  14. // @run-at document-body
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. 'use strict';
  19. var $ = window.jQuery;
  20. $('link[rel="stylesheet"]').attr('href','/white2/combined.css');
  21. document.head.insertAdjacentHTML('beforeend', `<style>
  22. body {
  23. font-family: Consolas;
  24. font-size: 0.9em;
  25. background-color: white;
  26. color: black;
  27. }
  28. #hd, #bd, .messages, .message-table tbody, .msg, .group-item, .tracker-item, .grid-row {
  29. background-color: white !important;
  30. color: black !important;
  31. }
  32. .title {
  33. background-color: white !important;
  34. color: gray !important;
  35. font-size: 0.8em !important;
  36. }
  37. .msg {
  38. padding: 0.5em !important;
  39. }
  40. .msg_body {
  41. padding-bottom: 0.3em !important;
  42. }
  43. .tag {
  44. background-color: whitesmoke !important;
  45. color: dimgray !important;
  46. font-size: 0.8em !important;
  47. padding: 0.1em !important;
  48. }
  49. .tag::before, .tag::after {
  50. content: "" !important;
  51. }
  52. code, .tag, .btn, .infoblock, .page-number, .msg, .group-item, .tracker-item, .message-table td, .photo {
  53. border: 1px solid lightgray !important;
  54. border-radius: 0.3em !important;
  55. font-family: Consolas;
  56. }
  57. .sign, .reply {
  58. color: gray !important;
  59. display: inline;
  60. margin: 0 !important;
  61. font-size: 0.8em;
  62. }
  63. .photo {
  64. height: 60px !important;
  65. width: 60px !important;
  66. }
  67. .userpic {
  68. height: 64px !important;
  69. width: 64px !important;
  70. margin: 8px !important;
  71. filter: saturate(0) opacity(0.5) !important;
  72. }
  73. .message-w-userpic {
  74. padding-left: 80px !important;
  75. }
  76. a {
  77. color: cadetblue;
  78. text-decoration: none;
  79. }
  80. </style>`);
  81. $('#yandex_rtb').remove();
  82. $('#interpage').remove();
  83. $('noscript').remove();
  84. $('script').remove();
  85. $('.reactions-form').remove();
  86. $(document).ready( function(){
  87. $('#yandex_rtb').remove();
  88. $('#interpage').remove();
  89. $('noscript').remove();
  90. $('script').remove();
  91. $('.reactions-form').remove();
  92. // Selection of user posts
  93. var user = $('div[id="topProfile"] > a');
  94. if ( user && user.text() ) {
  95. $('.sign > a').each( function() {
  96. if ( $(this).text() == user.text() ) {
  97. $(this).parent().parent().parent().css({'background-color':'azure'});
  98. }
  99. });
  100. }
  101. });
  102. })();