TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Browser extension that globally blocks vertical video?

23 点作者 kradeelav11 个月前
I dislike nearly everything about the recent vertical video format/medium that's taken over the internet since ~2018 or so. Is there an extension that globally blocks it across twitter/tumblr/youtube/anywhere embedded? Feels like it'd be pretty trivial to code if not, and I know there's a few other old web farts who would gladly use such an extension.

8 条评论

runjake11 个月前
I&#x27;m probably much older than you and I don&#x27;t mind, and in fact, I regularly watch vertical videos. They don&#x27;t bother me.<p>But here is some sloppy code you could create a basic browser extension and shove in content.js:<p><pre><code> function hideVerticalVideos() { const videos = document.querySelectorAll(&#x27;video&#x27;); videos.forEach(video =&gt; { if (video.videoHeight &gt; video.videoWidth) { video.style.display = &#x27;none&#x27;; } }); } &#x2F;&#x2F; Run hideVerticalVideos() when the page loads window.addEventListener(&#x27;load&#x27;, hideVerticalVideos); &#x2F;&#x2F; Run when the DOM updates const observer = new MutationObserver(hideVerticalVideos); observer.observe(document.body, { childList: true, subtree: true });</code></pre>
ryandetzel11 个月前
I wish everything was so great in my life that this could be a concern.
musicale11 个月前
I need a browser extension to block video autoplay because no browser setting seems to work consistently.<p>Safari in particular has never worked, but I&#x27;ve had bad luck with Chrome and Firefox as well.
gentile11 个月前
On youtube you can block the section with shorts in them with ublock (rclick &gt; block element), this was good enough for my use. I don&#x27;t know about other sites.
danjl11 个月前
Someone should use generative AI to convert portrait video into landscape by extending the sides (rather than cropping).
musicale11 个月前
I dislike vertical video also. Last I checked, phones can rotate 90 degrees to play landscape video.<p>On a related note, is there a browser that can completely block auto-playing video with a setting that actually works?<p>I find it depressing that web developers seem willing to do anything to ignore user preferences, especially when intrusive advertising is involved.
评论 #40688405 未加载
评论 #40687503 未加载
cpach11 个月前
I’m not wild about vertical videos either. But are you sure a technical solution is the best solution for this issue?
ivanjermakov11 个月前
It would be very hard to get rid of portrait videos that were uploaded as landscape but padded with black bars.
评论 #40686136 未加载