Youtube large figuccio

menu guida autorestringe

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Youtube large figuccio
// @description  menu guida autorestringe
// @namespace   https://greasyfork.org/users/237458
// @version      0.1
// @match        https://www.youtube.com/*
// @author       figuccio
// @grant       GM_addStyle
// @grant       GM_setValue
// @grant       GM_getValue
// @run-at       document-end
// ==/UserScript==
(function() {
    'use strict';
    function gebi (id) {
    	return document.getElementById (id);
    	}
	// impostare i valori predefiniti
	/////////////////////////////////77777
	if (!("hide_guide" in settings))
		settings.hide_guide = true;
	//////////////////////////////////////

	console.log ('fix settings:', settings);
	// cattura la pagina "impostazioni"
	if (document.location.pathname == '/fix-settings') {
		if (!ls) {
		    }
		else {
			let ess = {};
			function MakeDesc (desc) {
				let e = document.createElement ('span');
				e.appendChild (document.createTextNode (desc));
				return e;
				}
			function MakeBoolElement (nm) {
				let e = document.createElement ('input');
				e.type = 'checkbox';

				ess [nm] = e;
				return e;
				}

			e1.addEventListener ('click', function () {
				settings.hide_guide = ess.hide_guide.checked;

				if (settings.thumbnail_size == 5) {
					let v = ess.thumbnail_size_m.value;
					if (!/^\d+$/.test (v)) {

						}
					settings.thumbnail_size_m = parseInt (v);
					}
				});
			AddLine (e1);
			}
		document.body.appendChild (plane);
		return;
		}

	if (settings.hide_guide) {
		let guide_button = gebi ('guide-button');
		if (guide_button) {
			let tmp = guide_button.getElementsByTagName ('button');
			if (tmp.length) {
				tmp = tmp [0].attributes;
				if (tmp && tmp ['aria-pressed'].value == 'true')
					guide_button.click ();
				}
			}
		}

	// intervals
	setInterval (function () {
		}, 500);
	}) ();