Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

shasen1235

macrumors newbie
Mar 18, 2018
15
7
This is css injection not Javascript that Tampermonkey expects.

But it should work by defining the CSS injection process as a function then apply it.

I did not test this with Tampermonkey(as it's not free for Safari), but the following should work, as it works on UserScript:
JavaScript:
// ==UserScript==
// @name        FixYouTubeScrolling
// @description Stop improper styling, Google
// @match       *://*youtube.*
// ==/UserScript==
const addGlobalStyle = (css) => {
    let head, style
    head = document.getElementsByTagName('head')[0]
    if (!head) { return }
    style = document.createElement('style')
    style.type = 'text/css'
    style.innerHTML = css
    head.appendChild(style)
}

addGlobalStyle('ytd-page-manager { overflow-y: unset !important; }')
addGlobalStyle('#page-manager.ytd-app { overflow-x: unset !important; }')
God! Thank you it works:D
However, I need to do a bit of edit on @match in order to detect youtube properly for Tampermonkey.

from
// @match *://*youtube.*
to
// @match *://*.youtube.com/*

Now no more sticky scrolling:cool:
 

Wando64

macrumors 68020
Jul 11, 2013
2,342
3,119
I found a workaround for this. Looks like google mess around with styling that made Safari unhappy.

Install Userscripts extension, add a new CSS with following content:
CSS:
// ==UserScript==
// @name        FixYouTubeScrolling
// @description Stop improper styling, Google
// @match       *://*youtube.*
// ==/UserScript==
ytd-page-manager {
  overflow-y: unset !important;
}

#page-manager.ytd-app {
  overflow-x: unset !important;
}

Sample:
screen-shot-2020-12-05-at-19-10-48-png.1687608


Save and refresh YouTube, you should now have Apple-like butter smooth scrolling.

@Gnattu, you are a credit to this community.
Thank you.
 

shasen1235

macrumors newbie
Mar 18, 2018
15
7
For proper official fix we need to wait for Safari build 14.1.
The current technical preview fixed this issue on some big sites like Youtube, twitter...etc.
But still, there are still some sites having the same issue haven't been fixed.
 

Andrewfeng

macrumors newbie
Dec 22, 2020
1
0
I found a workaround for this. Looks like google mess around with styling that made Safari unhappy.

Install Userscripts extension, add a new CSS with following content:
CSS:
// ==UserScript==
// @name        FixYouTubeScrolling
// @description Stop improper styling, Google
// @match       *://*youtube.*
// ==/UserScript==
ytd-page-manager {
  overflow-y: unset !important;
}

#page-manager.ytd-app {
  overflow-x: unset !important;
}

Sample:
screen-shot-2020-12-05-at-19-10-48-png.1687608


Save and refresh YouTube, you should now have Apple-like butter smooth scrolling.
Hi, I'm having the same issue and this code has solved the problem perfectly. It now even automatically offers small window playing. Thank you very much!
 

barmann

macrumors 6502a
Oct 25, 2010
941
626
Germany
This is css injection not Javascript that Tampermonkey expects.

But it should work by defining the CSS injection process as a function then apply it.

I did not test this with Tampermonkey(as it's not free for Safari), but the following should work, as it works on UserScript:
JavaScript:
// ==UserScript==
// @name        FixYouTubeScrolling
// @description Stop improper styling, Google
// @match       *://*youtube.*
// ==/UserScript==
const addGlobalStyle = (css) => {
    let head, style
    head = document.getElementsByTagName('head')[0]
    if (!head) { return }
    style = document.createElement('style')
    style.type = 'text/css'
    style.innerHTML = css
    head.appendChild(style)
}

addGlobalStyle('ytd-page-manager { overflow-y: unset !important; }')
addGlobalStyle('#page-manager.ytd-app { overflow-x: unset !important; }')

Thank you so much, this fixed a very annoying Youtube bug, where I would get double side scroll bars with most YT videos , and the above mentioned scrolling issues .

This is in High Sierra , Safari 13.1.2 .
The issue started a few weeks ago, and so far has been limited to Youtube .
 
Last edited:

me55

macrumors regular
Jul 26, 2019
131
63
Scrolling often jitters and hangs, also video playback often stutters when using Safari 14.0.2. YouTube works flawlessly with the Safari Technoloy Preview Release 117.
 

flvmeed

macrumors newbie
Jan 7, 2021
1
0
I found a workaround for this. Looks like google mess around with styling that made Safari unhappy.

Install Userscripts extension, add a new CSS with following content:
CSS:
// ==UserScript==
// @name        FixYouTubeScrolling
// @description Stop improper styling, Google
// @match       *://*youtube.*
// ==/UserScript==
ytd-page-manager {
  overflow-y: unset !important;
}

#page-manager.ytd-app {
  overflow-x: unset !important;
}

Sample:
screen-shot-2020-12-05-at-19-10-48-png.1687608


Save and refresh YouTube, you should now have Apple-like butter smooth scrolling.
thank you so much, worked for me :)
 

hpkhpkhpk

macrumors newbie
Jan 26, 2021
1
0
I had the same issue only on Youtube starting with Big Sur and found that the following fixed it immediately:

In Safari open the Develop menu (maybe you have to enable the Develop menu first via Safari - Preferences - Advanced - Show Develop menu in the menu bar) and click Empty Caches.

Open the Develop menu once more, go to Experimental Features and scroll to the very bottom. Click Reset All to Defaults.
 

flowsy

macrumors 6502
Aug 16, 2009
356
299
Germany
It's even better in macOS Big Sur beta 11.3. Safari Version 14.1 (16611.1.10.1.5). And I mean all around better, just like in the Technology Preview.
 
  • Like
Reactions: paddylaz

vetoes

macrumors regular
Oct 16, 2017
142
36
Scrolling works fine on all pages other than on stupid Reddit and Instagram/explore subpage.
 

shasen1235

macrumors newbie
Mar 18, 2018
15
7
So far the best macOS version is 10.15.3 IMO.

Bundled with Safari 13 and good old trackpad scrolling algorithm.

Everything is buttery smooth as it should be.

Thanks Apple&Google, for ruining everything:(
 
  • Like
Reactions: dimon2242
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.