Make any YouTube embed click-to-load using uBlock Origin

Part of YouTube's success comes from the fact that it is easy to embed YouTube videos on third-party sites. Many website owners publish YouTube videos on the site itself but also on their own sites, and others may embed YouTube videos by other creators on their sites.
It is convenient to supplement an article that you are writing with a video, either self-created or created by someone else. On the other hand, users who don't want to watch the video may still have it played outright on the site or at least loaded to a degree. Connections to YouTube may not be wanted because of privacy. Some web browsers come with options to control media playback, others offer limited functionality in this regard only.
If you are using the content blocker uBlock Origin, you may use it to turn any YouTube embeds on third-party sites into click-to-play widgets. The main benefit of doing so is that there won't be any connections to YouTube and that nothing will load from the site unless you interact with that widget.
Here is an example screenshot captured here on this site after making the change in uBlock Origin. Note that we use the nocookie version of YouTube embeds on this site only.
A click on the widget loads the content; in this case just the YouTube video with options to start playback. On other sites, videos may play right away depending on factors such as the web browser that is used, the video in question, and the site.
The only downside to the approach is that you don't see the thumbnail or title of the video anymore on the page.
How to make YouTube embeds click-to-play in uBlock Origin
It is actually very easy and can be done in just a minute. Here are the steps:
- Activate the uBlock Origin icon in the browser's toolbar and select the "open the dashboard" option to open the management dashboard.
- Switch to the "My filters" section when the page opens.
- Add the following two lines to the list of filters:
- ||youtube.com^$3p,frame,redirect=click2load.html
- ||youtube-nocookie.com^$3p,frame,redirect=click2load.html
- Click on "apply changes" to save the new filters.
Once done, visit any site with YouTube embeds to test the filters. You can try our Vivaldi 2.10 review for example, as it includes a video embed.
Closing Words
Turning third-party embeds into click-to-play widgets is an excellent way of speeding up the loading of websites and improving privacy at the same time. Raymond Hill, the creator of uBlock Origin, published the tip on Twitter recently.
It should be easy enough to use the two filters as a blueprint for other third-party embeds that you encounter. All you have to do, usually, is replace the domain name of the site in question while leaving the instructions untouched.
Now You: do you prefer click to play or autoload?


Doesn’t Windows 8 know that www. or http:// are passe ?
Well it is a bit difficulty to distinguish between name.com domains and files for instance.
I know a service made by google that is similar to Google bookmarks.
http://www.google.com/saved
@Ashwin–Thankful you delighted my comment; who knows how many “gamers” would have disagreed!
@Martin
The comments section under this very article (3 comments) is identical to the comments section found under the following article:
https://www.ghacks.net/2023/08/15/netflix-is-testing-game-streaming-on-tvs-and-computers/
Not sure what the issue is, but have seen this issue under some other articles recently but did not report it back then.
Omg a badge!!!
Some tangible reward lmao.
It sucks that redditors are going to love the fuck out of it too.
With the cloud, there is no such thing as unlimited storage or privacy. Stop relying on these tech scums. Purchase your own hardware and develop your own solutions.
This is a certified reddit cringe moment. Hilarious how the article’s author tries to dress it up like it’s anything more than a png for doing the reddit corporation’s moderation work for free (or for bribes from companies and political groups)
Almost al unlmited services have a real limit.
And this comment is written on the dropbox article from August 25, 2023.
First comment > @ilev said on August 4, 2012 at 7:53 pm
For the God’s sake, fix the comments soon please! :[
Yes. Please. Fix the comments.
With Google Chrome, it’s only been 1,500 for some time now.
Anyone who wants to force me in such a way into buying something that I can get elsewhere for free will certainly never see a single dime from my side. I don’t even know how stupid their marketing department is to impose these limits on users instead of offering a valuable product to the paying faction. But they don’t. Even if you pay, you get something that is also available for free elsewhere.
The algorithm has also become less and less savvy in terms of e.g. English/German translations. It used to be that the bot could sort of sense what you were trying to say and put it into different colloquialisms, which was even fun because it was like, “I know what you’re trying to say here, how about…” Now it’s in parts too stupid to translate the simplest sentences correctly, and the suggestions it makes are at times as moronic as those made by Google Translations.
If this is a deep-learning AI that learns from users’ translations and the phrases they choose most often – which, by the way, is a valuable, moneys worthwhile contribution of every free user to this project: They invest their time and texts, thereby providing the necessary data for the AI to do the thing as nicely as they brag about it in the first place – alas, the more unprofessional users discovered the translator, the worse the language of this deep-learning bot has become, the greater the aggregate of linguistically illiterate users has become, and the worse the language of this deep-learning bot has become, as it now learns the drivel of every Tom, Dick and Harry out there, which is why I now get their Mickey Mouse language as suggestions: the inane language of people who can barely spell the alphabet, it seems.
And as a thank you for our time and effort in helping them and their AI learn, they’ve lowered the limit from what was once 5,000 to now 1,500…? A big “fuck off” from here for that! Not a brass farthing from me for this attitude and behaviour, not in a hundred years.
When will you put an end to the mess in the comments?
Ghacks comments have been broken for too long. What article did you see this comment on? Reply below. If we get to 20 different articles we should all stop using the site in protest.
I posted this on [https://www.ghacks.net/2023/09/28/reddit-enforces-user-activity-tracking-on-site-to-push-advertising-revenue/] so please reply if you see it on a different article.
Comment redirected me to [https://www.ghacks.net/2012/08/04/add-search-the-internet-to-the-windows-start-menu/] which seems to be the ‘real’ article it is attached to
Comment redirected me to [https://www.ghacks.net/2012/08/04/add-search-the-internet-to-the-windows-start-menu/] which seems to be the ‘real’ article it is attached to
Article Title: Reddit enforces user activity tracking on site to push advertising revenue
Article URL: https://www.ghacks.net/2023/09/28/reddit-enforces-user-activity-tracking-on-site-to-push-advertising-revenue/
No surprises here. This is just the beginning really. I cannot see a valid reason as to why anyone would continue to use the platform anymore when there are enough alternatives fill that void.