Greasy Fork is available in English.

抖音直播去除小黄车

抖音直播去除页面右边小黄车

// ==UserScript==
// @name         抖音直播去除小黄车
// @namespace    http://tampermonkey.net/
// @version      2024-06-02
// @description  抖音直播去除页面右边小黄车
// @author       You
// @match        https://live.douyin.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license      MIT
// ==/UserScript==

(function () {
  'use strict'
  const css = `
  .hide-hide-hide {display:none !important;}
  `
  const style = document.createElement('style')
  style.appendChild(document.createTextNode(css))
  document.querySelector('head').append(style)
  setTimeout(() => {
    const basicPlayer = document.querySelector('.basicPlayer')
    basicPlayer.parentElement.style.marginRight = ''
    document.querySelector('#__living_frame_right_panel_id').style.display = 'none'
    const children = basicPlayer.childNodes
    basicPlayer.childNodes[children.length - 3].style.display = 'none'
  }, 1000)
})()