Youtube Dark figuccio

youtube dark mode stop riproduzione autom

当前为 2021-12-21 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Youtube Dark figuccio
  3. // @namespace https://greasyfork.org/users/237458
  4. // @version 4.1
  5. // @description youtube dark mode stop riproduzione autom
  6. // @author figuccio
  7. // @match https://*.youtube.com/*
  8. // @run-at document-end
  9. // @grant GM_addStyle
  10. // @grant GM_setValue
  11. // @grant GM_getValue
  12. // @noframes
  13. // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
  14. // @icon https://www.youtube.com/s/desktop/3748dff5/img/favicon_48.png
  15. // @license MIT
  16. // ==/UserScript==
  17. //prima di continuare su youtube
  18. document.cookie = "CONSENT=YES+cb.20210328-17-p0.it+FX+274; domain=.youtube.com;max-age=315360000";
  19. if(!localStorage.reload) {
  20. setTimeout("document.location.reload()",2000);
  21. localStorage.reload = 1;
  22. }
  23. /////////////////////////////////////////////////////////
  24. //f5=20000 autoplay on f5=30000 autoplay off
  25. document.cookie = "PREF=f5=30000&f6=400; domain=.youtube.com;max-age=315360000";
  26. //Rimuovi Youtube Commenti
  27. GM_addStyle('ytd-comments.style-scope{ display:none !important; }');
  28. //adblock grosso banner youtube premium
  29. GM_addStyle(`#masthead-ad { display: none !important; }`);
  30.  
  31. //promemoria privacy
  32. document.cookie = "HideTicker=true;domain=.youtube.com;max-age=315360000";
  33. //annotazioni video
  34. GM_addStyle(`.html5-video-player .ytp-cards-button{ display: none !important; }`);
  35. //popup non hai eseguito laccesso
  36. GM_addStyle(`yt-tooltip-renderer{ display: none !important; }`);
  37. //////////////////// hide "guide" menu
  38.  
  39. $(document).ready(function() {
  40. (function() {
  41. var guide_button=document.getElementById('guide-button');
  42. if(guide_button){
  43. var tmp=guide_button.getElementsByTagName('button');
  44. if(tmp.length) {
  45. tmp=tmp[0].attributes;
  46. if(tmp&&tmp['aria-pressed'].value=='true')
  47. guide_button.click();
  48.  
  49. }
  50. }
  51. })();
  52.  
  53. });
  54.  
  55.  
  56. ///////////rimuove scritta consigliati allinterno video
  57. GM_addStyle('.ytp-cards-teaser-label{ display:none !important; }');
  58. ///////////icome home ecc e titoli home tendenze ecc
  59. GM_addStyle('.title,.pieSegment,svg { color: #5f84f1 !important;}');
  60. //scrittura verde
  61. GM_addStyle('.aplos-donut-center-content,.formatted-percentage.yta-explore-table-row,.entity-name.ytcp-navigation-drawer,#tags-count,h3.ytcp-uploads-basics,.source.ytpp-self-certification-predictor span.ytpp-self-certification-predictor,.m10n-icon-section.ytpp-self-certification-predictor span.ytpp-self-certification-predictor,#unplayableText,.content-title,.progress-label.ytcp-video-upload-progress,.issue-text.ytcd-help-center-issues-item,#campaign-title.ytd-donation-shelf-renderer,#published-time,.paddingten,#ctr-title,.label,#keywords-description,.channel-name,#purchase-amount,.paper-input-char-counter,.likes-label,#subtitle,.yt-multi-page-menu-section-renderer,.published-time-text,.yta-table-card,.ytcp-trend-label,.metric-value-absolute,#title-placeholder,#toggle.ytd-grid-renderer,#vote-count-middle,.ytcp-omnisearch,.ytcp-table-header,#vote-count-left,#subscribers,#guide-section-title,.content-text,#embed-label,#upnext,.count-text,.ytd-channel-about-metadata-renderer,#title,#subscriber-count,#byline,#content,.view-count,.yt-simple-endpoint,#account-name {color:green!important;}');
  62.  
  63. //////////////play avanti ingrandisci colore rosso
  64. GM_addStyle('path[class=\"ytp-svg-fill\"] { fill: red !important;}');
  65. //volume verde
  66. GM_addStyle('path[class=\"ytp-svg-fill ytp-svg-volume-animation-speaker\"] { fill: green !important;}');
  67.  
  68. //ingranaggio impostazioni
  69. GM_addStyle('path[d=\"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z\"] {fill:#33d79e !important;}');
  70. //mini player
  71. GM_addStyle('path[d=\"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z\"] {fill:#33d79e !important;}');
  72. //modalita cinema
  73. GM_addStyle('path[d=\"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z\"] { fill:#33d79e !important;}');
  74.  
  75. ////////////////////////////covid
  76. GM_addStyle('ytd-compact-promoted-item-renderer[view-style=COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID] #dismissible.ytd-compact-promoted-item-renderer{display:none !important;}');
  77.  
  78.