AliyundrivePlayerStyle

Aliyundrive Player Style

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         AliyundrivePlayerStyle
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Aliyundrive Player Style
// @author       JackieZheng
// @match        *://www.aliyundrive.com/drive/*
// @icon         https://gw.alicdn.com/imgextra/i3/O1CN01aj9rdD1GS0E8io11t_!!6000000000620-73-tps-16-16.ico
// @supportURL   https://github.com/JackieZheng/AliyundrivePlayerStyle/issues
// @grant    GM_addStyle
// ==/UserScript==

GM_addStyle(".video-previewer,.video-previewer--1vo5c,.header,.header--2Vw8Y{padding: 10px !important;background: #000000;}");
GM_addStyle(".header--2Vw8Y{height: 10px !important;opacity: .1;}");
GM_addStyle(".header--2Vw8Y:hover{height: 60px !important;opacity: 1;}");
GM_addStyle(".video-player,.video-player--29_72{bottom: 0px !important;left: unset !important; -webkit-transform: unset !important;  transform: unset !important;}");
GM_addStyle(".icon,.icon--d-ejA,.icon--d-ejA[data-render-as=svg] svg,.nav-text,.nav-text--2o_Eh,.filename,.filename--zkxdz,.nav-actions--3xj7P{fill:#aaaaaa61 !important;color:#aaaaaa61;}");
GM_addStyle(".toolbar-wrapper[data-visible=true],.toolbar-wrapper--1NDow[data-visible=true] {opacity: .4 !important;height: 50px;overflow: hidden;}");
GM_addStyle(".video-player.show,.video-player--29_72.show--Zy5bU {opacity: .4 !important;width: 100%;}");
GM_addStyle(".toolbar-wrapper[data-visible=true]:hover,.toolbar-wrapper--1NDow[data-visible=true]:hover {opacity: 1 !important;height: auto;}");
GM_addStyle("video{top:10px !important;height:calc( 100% - 10px ) !important;}");
GM_addStyle(".video-stage.video,.video-stage.thumbnail,.video-stage--3LCB4.video--26SLZ,.video-stage--3LCB4.thumbnail--2T1JI{top:10px !important;height:calc( 100% - 10px ) !important;}");
GM_addStyle(".drawer-item,.drawer-item--2cNtQ,.drawer-item[data-is-current=true],.drawer-item--2cNtQ[data-is-current=true]{justify-content: center !important;}");
GM_addStyle(".drawer-item[data-is-current=true] .title .filename,.drawer-item--2cNtQ[data-is-current=true] .title--2vewu .filename--3hcxw{color: #faad14; !important;}");
GM_addStyle(".drawer-item[data-is-current=true] .text,.drawer-item--2cNtQ[data-is-current=true] .text--AMJbu,.drawer-item--2cNtQ[data-is-current=true] .text--3NvlJ{color: #faad14; !important;}");


(function() {
    'use strict';
    setTimeout(getTitle, 2000 );
    window.addEventListener("hashchange", getTitle);
    document.body.addEventListener('click',getTitle, false);
    document.body.addEventListener('mousemove',getTitle, false);
    function getTitle(){
        var divLength=document.querySelectorAll("div[class^=breadcrumb-item-link]").length;
        if(divLength>0)
        {
            document.title=document.querySelectorAll("div[class^=breadcrumb-item-link]")[divLength-1].textContent;
        }
    }

})()