test

youtube最大化不显示进度条

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

this.$ = this.jQuery = jQuery.noConflict(true);
// ==UserScript==
// @name         test
// @namespace    15home
// @version      1.0
// @description  youtube最大化不显示进度条
// @author       jarry.potter
// @match        https://www.youtube.com/*
// @grant        none
// @require      https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js
// @license      MIT
// ==/UserScript==

(function () {
    'use strict';

 console.log('yt::准备清除youtube播放条');
    (function ($) { // dialogtip-text
        $(document).ready(function () {
            var timesRun = 0
            var inter = setInterval(function () {
                console.log('youtube star--')
                var obj = $("div.ytp-gradient-bottom")[0].style.height.replace('px','');
                if(obj>200){
                    $("div.ytp-title-text").hide();
                    $("div.ytp-chrome-bottom").hide();
                    $("ytp-chrome-top-buttons").hide();
                    console.log('ytb-title and ytp-chrome-bottom hidden is ok ')
                }else{
                    $("div.ytp-title-text").show();
                    $("div.ytp-chrome-bottom").show();
                }
            }, 2000);
        })
    })(jQuery);
})();