Skip to content

Commit

Permalink
Update for new YouTube layout
Browse files Browse the repository at this point in the history
Where the suggested videos are below the current video, and the comments are in the right column
  • Loading branch information
ZimbiX committed Apr 19, 2024
1 parent 32f72c4 commit 62a916e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion extension/contentScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@

const isWatchVideoPage = () => window.location.pathname == "/watch"

const fluff = ['#secondary-inner', '#info', '#meta', '#comments', '#masthead-container', '#speedyg']
const fluff = [
// Header
'#masthead-container',

// Right column contents
'#secondary-inner',
'#fixed-secondary',

// Below video
'#below',
'#speedyg',
]

const setFluffDisplay = (value) => {
fluff.forEach(selector => {
Expand Down

0 comments on commit 62a916e

Please sign in to comment.