I'm a programmer, a creative person, working on my projects, and regularly I need a short break, so on every break I usually lay in bed and checked the news and I often ended on YouTube watching more videos, wasting hours every day.
What eventually helped me was use css to replace entire YouTube (and other doom scrolling websites) with a motivational picture that says:
"One day, you'll realize that your dream died because you chose comfort over effort. Don't let that regret haunt you forever."
And it worked.
The css for yt looks like this:
body {
min-height: 100vh;
background-image:url(https://example.com/effort.jpg);
background-size: contain;
background-repeat: no-repeat;
background-position: center;
background-color: black;
}
p,div,h1,span {display:none}
It's been 6 months and it's still working.