您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
wide video container on youtube
当前为
- // ==UserScript==
- // @name Youtube - Wide video container
- // @namespace 1N07
- // @author 1N07
- // @description wide video container on youtube
- // @include https://www.youtube.com/*
- // @version 1.6.1
- // @grant none
- // ==/UserScript==
- if(!!document.getElementById("early-body")) { //if old youtube
- document.getElementById("content").setAttribute("style", "width: 99%;");
- } else { //new youtube
- addGlobalStyle(`
- #page-manager > ytd-browse:not([page-subtype="playlist"]) ytd-two-column-browse-results-renderer.ytd-browse,
- ytd-browse ytd-video-masthead-ad-v3-renderer.ytd-browse
- {
- box-sizing: border-box;
- width: 99%;
- width: calc(100% - 20px) !important;
- position: relative !important;
- }
- `);
- }
- function addGlobalStyle(css) {
- var head, style;
- head = document.getElementsByTagName('head')[0];
- if (!head) { return; }
- style = document.createElement('style');
- style.type = 'text/css';
- style.innerHTML = css;
- head.appendChild(style);
- }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址