Youtube large figuccio

menu guida autorestringe

目前為 2020-10-05 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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);
	}) ();