Greasy Fork

来自缓存

Greasy Fork is available in English.

AliyundrivePlayerStyle

Aliyundrive Player Style

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
JackieZheng
日安装量
0
总安装量
225
评分
0 0 0
版本
1.2
创建于
2021-10-29
更新于
2022-01-06
大小
2.8 KB
许可证
暂无
适用于

// ==UserScript==
// @name AliyundrivePlayerStyle
// @namespace http://tampermonkey.net/
// @version 0.8
// @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
// @grant GM_addStyle
// ==/UserScript==

GM_addStyle(".video-previewer,.video-previewer--1vo5c,.header,.header--2Vw8Y{padding: 10px !important;background: #000000;}");
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:60px !important;height:calc( 100% - 60px ) !important;}");
GM_addStyle(".video-stage.video,.video-stage.thumbnail,.video-stage--3LCB4.video--26SLZ,.video-stage--3LCB4.thumbnail--2T1JI{top:60px !important;height:calc( 100% - 60px ) !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;}");


(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;
}
}

})()