Guest User

enhancer for youtube script

a guest
Jun 21st, 2023
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.06 KB | None | 0 0
  1. (function() {
  2. window['yt'] = window['yt'] || {};
  3. yt['config_'] = yt.config_ || {};
  4. yt.config_['EXPERIMENT_FLAGS'] = yt.config_.EXPERIMENT_FLAGS || {};
  5.  
  6. var iv = setInterval(function() {
  7. yt.config_.EXPERIMENT_FLAGS.kevlar_watch_metadata_refresh = false;
  8. yt.config_.EXPERIMENT_FLAGS.kevlar_watch_fixie = false;
  9. yt.config_.EXPERIMENT_FLAGS.kevlar_structured_description_content_inline = true;
  10. yt.config_.EXPERIMENT_FLAGS.web_button_rework = false;
  11. yt.config_.EXPERIMENT_FLAGS.kevlar_watch_modern_metapanel = false;
  12. yt.config_.EXPERIMENT_FLAGS.web_sheets_ui_refresh = false;
  13. yt.config_.EXPERIMENT_FLAGS.web_modern_buttons = false;
  14. yt.config_.EXPERIMENT_FLAGS.web_modern_subscribe_style = false;
  15. yt.config_.EXPERIMENT_FLAGS.web_searchbar_style = "default";
  16. }, 1);
  17.  
  18. var to = setTimeout(function() {
  19. clearInterval(iv);
  20. }, 1000)
  21. })();
  22.  
  23. (function() {
  24. ApplyCSS();
  25.  
  26. function ApplyCSS() {
  27. var styles = document.createElement("style");
  28. styles.innerHTML=`
  29.  
  30. .ryd-tooltip {
  31.  
  32. position: absolute !important;
  33.  
  34. right: 175px;
  35.  
  36. top: 500px;
  37.  
  38. }
  39.  
  40. .yt-spec-button-shape-next--mono.yt-spec-button-shape-next--tonal {
  41.  
  42. color: var(--yt-spec-text-primary);
  43.  
  44. background-color: rgb(0 0 0 / 0%) !important;
  45.  
  46. }
  47.  
  48. .yt-spec-touch-feedback-shape--touch-response .yt-spec-touch-feedback-shape__fill {
  49.  
  50. background-color: rgb(0 0 0 / 0%);
  51.  
  52. }
  53.  
  54. button.yt-spec-button-shape-next.yt-spec-button-shape-next--tonal.yt-spec-button-shape-next--mono.yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-leading.yt-spec-button-shape-next--segmented-start:hover {
  55.  
  56. background-color: rgb(255 0 0 / 0%) !important;
  57.  
  58. }
  59.  
  60. button.yt-spec-button-shape-next.yt-spec-button-shape-next--tonal.yt-spec-button-shape-next--mono.yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-only-default.yt-spec-button-shape-next--segmented-end:hover {
  61.  
  62. background-color: rgb(255 0 0 / 0%) !important;
  63.  
  64. }
  65.  
  66. button.yt-spec-button-shape-next.yt-spec-button-shape-next--tonal.yt-spec-button-shape-next--mono.yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-leading.yt-spec-button-shape-next--segmented-start:active {
  67.  
  68. background-color: rgb(255 0 0 / 0%) !important;
  69.  
  70. }
  71.  
  72. button.yt-spec-button-shape-next.yt-spec-button-shape-next--tonal.yt-spec-button-shape-next--mono.yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-only-default.yt-spec-button-shape-next--segmented-end:active {
  73.  
  74. background-color: rgb(255 0 0 / 0%) !important;
  75.  
  76. }
  77.  
  78. .yt-spec-touch-feedback-shape--touch-response .yt-spec-touch-feedback-shape__stroke {
  79.  
  80. border: 1px solid rgb(255 0 0 / 0%) !important;
  81.  
  82. }
  83.  
  84. ytd-rich-grid-media[rounded-container] #dismissed.ytd-rich-grid-media {
  85. border-radius: 1px !important;
  86. }
  87. ytd-rich-metadata-renderer[rounded] {
  88. border-radius: 1px;
  89. }
  90. ytd-playlist-thumbnail[size=medium] a.ytd-playlist-thumbnail, ytd-playlist-thumbnail[size=medium]:before {
  91. border-radius: 1px;
  92. }
  93. yt-chip-cloud-chip-renderer[modern-chips][chip-style] {
  94. border-radius: 20px;
  95. border: 1px solid var(--yt-spec-10-percent-layer);
  96. }
  97. yt-chip-cloud-chip-renderer[modern-chips][chip-style] {
  98. border-radius: 1px;
  99. border: none;
  100. }
  101. ytd-thumbnail[size] ytd-thumbnail-overlay-time-status-renderer.ytd-thumbnail, ytd-thumbnail[size] ytd-thumbnail-overlay-button-renderer.ytd-thumbnail {
  102. border-radius: 1px;
  103. }
  104. .ytp-settings-menu.ytp-rounded-menu, .ytp-screen-mode-menu.ytp-rounded-menu {
  105. border-radius: 1px;
  106. }
  107. ytd-guide-entry-renderer[guide-refresh] yt-interaction.ytd-guide-entry-renderer {
  108. border-radius: 1px !important;
  109. }
  110. yt-img-shadow.ytd-guide-entry-renderer {
  111. border-radius: 1px;
  112. }
  113. #endpoint.yt-simple-endpoint.ytd-guide-entry-renderer {
  114. border-radius: 1px !important;
  115. }
  116. yt-img-shadow.ytd-guide-entry-renderer {
  117. border-radius: 1px;
  118. }
  119. .player-container.ytd-reel-video-renderer {
  120. border-radius: 1px;
  121. }
  122. ytd-playlist-panel-renderer[modern-panels]:not([within-miniplayer]) #container.ytd-playlist-panel-renderer {
  123. border-radius: 1px;
  124. }
  125. yt-interaction.circular .fill.yt-interaction, yt-interaction.circular .stroke.yt-interaction {
  126. border-radius: 1px;
  127. }
  128. ytd-guide-entry-renderer[guide-refresh] {
  129. border-radius: 1px;
  130. }
  131. #home-page-skeleton .video-details {
  132. border-radius: 1px;
  133. }
  134. #home-page-skeleton .rich-thumbnail.rounded-thumbs, #home-container-skeleton .rich-thumbnail.rounded-thumbs:before {
  135. border-radius: inherit;
  136. }
  137. ytd-searchbox[desktop-searchbar-style=rounded_corner_borders_light_btn] #search-icon-legacy.ytd-searchbox, ytd-searchbox[desktop-searchbar-style=rounded_corner_autofocus] #search-icon-legacy.ytd-searchbox {
  138. border-radius: 1px 1px 1px 1px;
  139. }
  140. ytd-searchbox[desktop-searchbar-style=rounded_corner_borders_light_btn] #container.ytd-searchbox, ytd-searchbox[desktop-searchbar-style=rounded_corner_autofocus] #container.ytd-searchbox {
  141. border-radius: 1px 1px 1px 1px;
  142. }
  143.  
  144. ytd-thumbnail[size=large] a.ytd-thumbnail, ytd-thumbnail[size=large]:before {
  145. border-radius: 1px;
  146. }
  147.  
  148. /*remove if no YT enhancer */
  149.  
  150. /*ytd-video-primary-info-renderer[has-date-text] #info-text.ytd-video-primary-info-renderer {
  151. top: 28px;
  152. position: relative;
  153. }
  154. ytd-video-primary-info-renderer[flex-menu-enabled] #info.ytd-video-primary-info-renderer {
  155. bottom: 84px;
  156. position: relative;
  157. }*/
  158. /*remove if no YT enhancer */
  159.  
  160.  
  161.  
  162. .yt-spec-button-shape-next--icon-only-default {
  163. border-radius: 1px 1px 1px 1px;
  164. }
  165. ytd-thumbnail[size=medium] a.ytd-thumbnail, ytd-thumbnail[size=medium]:before {
  166. border-radius: 1px;
  167. }
  168. .yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--segmented-start {
  169. border-radius: 1px 1px 1px 1px;
  170. height: 40px;
  171. }
  172. .yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--segmented-end {
  173. border-radius: 1px 1px 1px 1px;
  174. }
  175. ytd-video-primary-info-renderer[use-yt-sans20-light] .title.ytd-video-primary-info-renderer {
  176. font-family: "Roboto",sans-serif;
  177. font-weight: 400;
  178. font-size: 18px;
  179. }`
  180. document.head.appendChild(styles);
  181. }
  182. })();
Add Comment
Please, Sign In to add comment