YouTube: Force Single Column Mode

8/17/2023, 1:51:20 AM

目前为 2023-08-16 提交的版本。查看 最新版本

// ==UserScript==
// @name        YouTube: Force Single Column Mode
// @namespace   UserScripts
// @match       https://www.youtube.com/*
// @grant       none
// @version     1.0
// @author      CY Fung
// @description 8/17/2023, 1:51:20 AM
// @license MIT
// ==/UserScript==


(() => {

  setInterval(() => {
    let ytdWatchFlexy = document.querySelector('ytd-watch-flexy[is-two-columns_]:not([hidden])');
    if (ytdWatchFlexy) {
      ytdWatchFlexy.removeAttribute('is-two-columns_')

    }


  }, 1)

})();