Browser extension that globally blocks vertical video?
1–10 of 17 posts
Re: Browser extension that globally blocks vertical video?
#2But here is some sloppy code you could create a basic browser extension and shove in content.js:
function hideVerticalVideos() {
const videos = document.querySelectorAll('video');
videos.forEach(video => {
if (video.videoHeight > video.videoWidth) {
video.style.display = 'none';
}
});
}
// Run hideVerticalVideos() when the page loads
window.addEventListener('load', hideVerticalVideos);
// Run when the DOM updates
const observer = new MutationObserver(hideVerticalVideos);
observer.observe(document.body, { childList: true, subtree: true });Re: Browser extension that globally blocks vertical video?
#3Re: Browser extension that globally blocks vertical video?
#4It would be very hard to get rid of portrait videos that were uploaded as landscape but padded with black bars.
Re: Browser extension that globally blocks vertical video?
#5Re: Browser extension that globally blocks vertical video?
#6It would be very hard to get rid of portrait videos that were uploaded as landscape but padded with black bars.
But I would instantly install a browser extension that makes youtube shorts go away. I avoid them studiously because I find that whenever I click them, I come to 45 minutes later, deep inside a rabbit hole of everything that makes the internet horrible. Making them go away altogether would significanly improve my mental health.
https://www.youtube.com/shorts/KaSmgzaKgYM
and https://www.youtube.com/v/KaSmgzaKgYM
are the same, so at least you can use some redirection extensions to always show you the full interface.Or use something like 'Simple Blocker' (FF) which would just block everything which includes `youtube.com/shorts/` in the URL.
Re: Browser extension that globally blocks vertical video?
#7On a related note, is there a browser that can completely block auto-playing video with a setting that actually works?
I find it depressing that web developers seem willing to do anything to ignore user preferences, especially when intrusive advertising is involved.
Re: Browser extension that globally blocks vertical video?
#8I dislike vertical video also. Last I checked, phones can rotate 90 degrees to play landscape video. On a related note, is there a browser that can completely block auto-playing video with a setting that actually works? I find it depressing that web developers seem willing to do anything to ignore user preferences, especially when intrusive advertising is involved.
Re: Browser extension that globally blocks vertical video?
#9It would be very hard to get rid of portrait videos that were uploaded as landscape but padded with black bars.
But I would instantly install a browser extension that makes youtube shorts go away. I avoid them studiously because I find that whenever I click them, I come to 45 minutes later, deep inside a rabbit hole of everything that makes the internet horrible. Making them go away altogether would significanly improve my mental health.
I also recommend blocking "feed" page, side suggestions and comment section.
Re: Browser extension that globally blocks vertical video?
#10I dislike vertical video also. Last I checked, phones can rotate 90 degrees to play landscape video. On a related note, is there a browser that can completely block auto-playing video with a setting that actually works? I find it depressing that web developers seem willing to do anything to ignore user preferences, especially when intrusive advertising is involved.
In about:config:
media.autoplay.default = 5
media.autoplay.blocking_policy = 2
From https://www.privacy-handbuch.de/handbuch_21h.htm?q=autoplay
Searching on that site for autoplay leads to the same settings for Fennec on Android, but I don't dream of electric sheep, so ...