Youtube Dark figuccio

youtube dark mode stop riproduzione autom

当前为 2020-10-28 提交的版本,查看 最新版本

// ==UserScript==
// @name         Youtube Dark figuccio
// @namespace    https://greasyfork.org/users/237458
// @version      1.2
// @description  youtube dark mode stop riproduzione autom
// @author       figuccio
// @match        https://*.youtube.com/*
// @run-at       document-start
// @grant        GM_addStyle
// @grant        GM_setValue
// @grant        GM_getValue
// @include      https://consent.youtube.*/*
// @noframes
// @require     https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// ==/UserScript==
  //f5=20000 autoplay on    f5=30000 autoplay off
document.cookie = "PREF=f1=50000000&f5=30000&f6=400; domain=.youtube.com;max-age=315360000";
//Rimuovi Youtube Commenti
GM_addStyle('ytd-comments.style-scope{ display:none !important; }');
//adblock grosso banner youtube premium
GM_addStyle(`#masthead-ad { display: none !important; }`);

//promemoria privacy
document.cookie = "HideTicker=true;domain=.youtube.com;max-age=315360000";
//annotazioni video
GM_addStyle(`.html5-video-player .ytp-cards-button{ display: none !important; }`);
//////////////////// hide "guide" menu
$(document).ready(function() {
(function() {
	var guide_button=document.getElementById('guide-button');
	if(guide_button){
		var tmp=guide_button.getElementsByTagName('button');
        if(tmp.length) {
			tmp=tmp[0].attributes;
			if(tmp&&tmp['aria-pressed'].value=='true')
				guide_button.click();
		    }
	    }
})();

});
///////////////////////////////////////////////////comandi video colorati
GM_addStyle('.ytp-exp-bottom-control-flexbox .ytp-left-controls,.ytp-play-button:not(.ytp-play-button-playlist)::before,.ytp-fullscreen-button::after,.ytp-button:not([aria-disabled=true]):not([disabled]):not([aria-hidden=true]){background-color:green!important;}');

//youtube stai zitto
(function(){
"use strict";
if (document.readyState != 'loading') consent();
else document.addEventListener('DOMContentLoaded', consent);

function consent() {
  var e=document.querySelector('#introAgreeButton');
  e && e.click();
  }

})();
GM_addStyle('#dialog.yt-upsell-dialog-renderer{display:none!important}')