Return WATCHED badge on Youtube (with custom text)

Bring back the WATCHED overlay to the videos you have already watched on youtube.

Stan na 04-07-2022. Zobacz najnowsza wersja.

  1. /* ==UserStyle==
  2. @name Return WATCHED badge on Youtube (with custom text)
  3. @namespace q1k
  4. @type uso
  5. @description Bring back the WATCHED overlay to the videos you have already watched on youtube.
  6. @version 1.0.1
  7. @advanced text watched_text "Watched video text: " "WATCHED"
  8. @advanced dropdown watched_badge_style "Watched badge style: " {
  9. 0 "Small (default)" <<<EOT
  10. /* white overlay *\/
  11. .resume-playback-background,
  12. ytd-thumbnail-overlay-resume-playback-renderer {
  13. background: rgba(255, 255, 255, 0.37) !important;
  14. position: absolute;
  15. left: 0;
  16. top: 0;
  17. display: block !important;
  18. height: 100%;
  19. width: 100%;
  20. pointer-events: none;
  21. opacity: 1;
  22. z-index: 11;
  23. text-align: left;
  24. font-size: 12px;
  25. transition: background 0.2s;
  26. }
  27. /* watched tag - default *\/
  28. .resume-playback-background::before,
  29. ytd-thumbnail-overlay-resume-playback-renderer::before {
  30. background: black;
  31. content: "/*[[watched_text]]*\/";
  32. color: white;
  33. font-weight: 500;
  34. box-sizing: border-box;
  35. width: auto;
  36. height: 17px;
  37. line-height: 17px;
  38. padding-left: 5px;
  39. padding-right: 5px;
  40. display: block;
  41. position: absolute;
  42. left: 1px;
  43. top: 1px;
  44. z-index: 12;
  45. opacity: 0.9;
  46. pointer-events: none;
  47. font-size: 100%;
  48. }
  49.  
  50. #thumbnail:hover ytd-thumbnail-overlay-resume-playback-renderer {
  51. background: rgba(0, 0, 0, 0) !important;
  52. transition: background 0.2s;
  53. }
  54. EOT;
  55. 1 "Alternative (old style)" <<<EOT
  56. /* white overlay *\/
  57. .resume-playback-background,
  58. ytd-thumbnail-overlay-resume-playback-renderer {
  59. background: rgba(255, 255, 255, 0.37) !important;
  60. position: absolute;
  61. left: 0;
  62. top: 0;
  63. display: block !important;
  64. height: 100%;
  65. width: 100%;
  66. pointer-events: none;
  67. opacity: 1;
  68. z-index: 11;
  69. text-align: left;
  70. font-size: 12px;
  71. }
  72. /* watched tag - alternative *\/
  73. .resume-playback-background::before,
  74. ytd-thumbnail-overlay-resume-playback-renderer::before {
  75. background: #444;
  76. content: "/*[[watched_text]]*\/";
  77. color: white;
  78. font-weight: 500;
  79. box-sizing: border-box;
  80. width: 100%;
  81. height: 18px;
  82. line-height: 18px;
  83. padding-left: 5px;
  84. padding-right: 5px;
  85. display: block;
  86. position: absolute;
  87. left: 0;
  88. top: 0;
  89. z-index: 12;
  90. opacity: 0.9;
  91. pointer-events: none;
  92. font-size: 93%;
  93. } EOT;
  94. 2 "Full (completely covered)" <<<EOT
  95. /* overlay *\/
  96. .resume-playback-background,
  97. ytd-thumbnail-overlay-resume-playback-renderer {
  98. background: rgba(0, 0, 0, 0.7) !important;
  99. position: absolute;
  100. left: 0;
  101. top: 0;
  102. display: block !important;
  103. height: 100%;
  104. width: 100%;
  105. pointer-events: none;
  106. opacity: 1;
  107. z-index: 11;
  108. font-size: 12px;
  109. text-align: center;
  110. transition: background 0.2s;
  111. }
  112. /* watched tag - full *\/
  113. .resume-playback-background::before,
  114. ytd-thumbnail-overlay-resume-playback-renderer::before {
  115. /*background: rgba(0, 0, 0, 0.85);*\/
  116. content: "/*[[watched_text]]*\/";
  117. color: white;
  118. font-weight: 400;
  119. box-sizing: border-box;
  120. width: auto;
  121. height: 100%;
  122. line-height: normal;
  123. padding: 1px 5px;
  124. display: flex;
  125. z-index: 12;
  126. opacity: 0.9;
  127. pointer-events: none;
  128. font-size: 140%;
  129. transition: opacity 0.2s;
  130. flex-direction: row;
  131. align-items: center;
  132. justify-content: center;
  133. }
  134. .yt-lockup-thumbnail:hover .resume-playback-background::before,
  135. .thumb-wrapper:hover .resume-playback-background::before,
  136. #thumbnail:hover ytd-thumbnail-overlay-resume-playback-renderer::before {
  137. opacity: 0;
  138. transition: opacity 0.2s;
  139. }
  140. .yt-lockup-thumbnail:hover .resume-playback-background,
  141. .thumb-wrapper:hover .resume-playback-background,
  142. #thumbnail:hover ytd-thumbnail-overlay-resume-playback-renderer {
  143. background: rgba(0, 0, 0, 0) !important;
  144. transition: background 0.2s;
  145. } EOT;
  146. }
  147. @advanced dropdown remove_red_bar "Remove red bar?" {
  148. 0 "No" <<<EOT
  149. /* remove red bar - NO *\/
  150. /* fix the other tags/badges *\/
  151. .resume-playback-progress-bar,
  152. .ytd-thumbnail-overlay-resume-playback-renderer {
  153. z-index: 13 !important;
  154. height: 4px !important;
  155. }
  156. .video-time,
  157. ytd-thumbnail-overlay-time-status-renderer {
  158. z-index: 13 !important;
  159. pointer-events: none;
  160. } EOT;
  161. 1 "Yes" <<<EOT
  162. /* remove red bar - YES *\/
  163. .resume-playback-progress-bar, .resume-playback-background::after,
  164. .ytd-thumbnail-overlay-resume-playback-renderer,
  165. ytd-thumbnail-overlay-resume-playback-renderer::after {
  166. display: none !important;
  167. }
  168. /* fix the video time tag *\/
  169. .video-time,
  170. ytd-thumbnail-overlay-time-status-renderer {
  171. z-index: 13 !important;
  172. pointer-events: none;
  173. margin-bottom: 0 !important;
  174. bottom: 2px;
  175. } EOT;
  176. }
  177. ==/UserStyle== */
  178.  
  179. @namespace url(http://www.w3.org/1999/xhtml);
  180. @-moz-document domain("youtube.com") {
  181. /*
  182. Bring back the WATCHED badge to the videos you have already watched on youtube.
  183. In a recent update youtube removed the watched tag, and added a red progression bar on the bottom that doesn't function properly.
  184. With this style you will get the WATCHED tag back.
  185. */
  186. #progress.ytd-thumbnail-overlay-resume-playback-renderer { height: 4px !important; bottom: 0px !important; position: absolute !important; }
  187. #overlays > * { z-index: 13; }
  188. #hover-overlays ytd-thumbnail-overlay-toggle-button-renderer {
  189. z-index: 13;
  190. }
  191. /*[[watched_badge_style]]*/
  192. /* return the progressbar background */
  193. .resume-playback-background::after,
  194. ytd-thumbnail-overlay-resume-playback-renderer::after {
  195. background: rgba(255, 255, 255, 0.5);
  196. content: "";
  197. position: absolute;
  198. display: block;
  199. right: 0;
  200. bottom: 0;
  201. height: 4px;
  202. width: 100%;
  203. z-index: 12;
  204. }
  205. /*[[remove_red_bar]]*/
  206. /* */
  207. .watched-badge,
  208. .ytd-thumbnail-overlay-playback-status-renderer {
  209. display: none !important;
  210. }
  211. .watched .video-thumb, .watch-sidebar-body .yt-uix-simple-thumb-wrap.watched > img {
  212. opacity: 1 !important;
  213. }
  214. }