Tag Archives: YouTube

How to fix “can’t log into YouTube from Safari” on macOS

Something rather strange happened to me today: Safari 10 on macOS Sierra refused to let me login to YouTube. All it did was constantly refresh the page in an endless loop, or just display the front page of YouTube. I cleared the caches, reset the history, but no trick seemed to solve the problem.

When I dug deeper into the Preferences, I found something under Privacy that finally fixed it. Let me share with you what worked on my system.

  • head over to Safari – Preferences
  • select the Privacy tab
  • you’ll see a window like this one:

  • select Manage Website Data
  • after a few moments you’ll see a LONG list of websites that have saved cookies on your machine over time
  • in the top right corner, search for YouTube
  • you’ll see something like this:

  • select the YouTube.com entry and hit Remove, followed by Done
  • now surf back to YouTube and login – this time it’ll work

What we’ve just removed were not just cookies, but also HTML local storage data, as well as cache data specific to the YouTube website. I guess cached stuff can get outdated, or not properly deleted when we close our browser in a hurry.

The principle should work for other websites too, should they give you trouble. If you’re sick and tired of any website saving data to your system, consider switching to the “Always Block” option seen in the first screen shot.

 

How to embed YouTube and Vimeo videos in WordPress

In this screencast I’ll show you how to embed YouTube and Vimeo videos into your WordPress posts. There’s no need to copy and paste code snippets and position them anymore, thanks to a technology called oEmbed (sometimes called auto embed).

WordPress parses the URL to your videos and adds the code needed to display those automatically – it even adjusts the width (if supported by your theme).

oEmbed works with a variety of services, and while I’m at it I’ll show you how to embed items from YouTube, Vimeo, Flickr and Twitter. For a full list of supported services take a look at this:

How to embed YouTube videos in HD quality

Since YouTube are offerning higher quality playback, surely there should be an easy way to embed videos in this grandiose new quality too. There is indeed, even though YouTube are not very forthcoming with how this works. Fret not, the Guru can help you!

You know how to embed a standard video into your posts/websites? Sure you do, by copying the code that’s in the EMBED box on YouTube.

Notice that there are two URLs present in this code (one is for Internet Explorer, one is for Firefox & Co. Amend both URLs with the following code:

&hl=en&fs=1&ap=%2526fmt%3D22

Voila, your video is now embedded in HD.

Compare these two examples if you will:

15 Ways to empty a Water Glass (SD)

15 Ways to empty a Water Glass (HD)

Have a look at the source code of this page for an exact example, if my explanation isn’t detailed enough. Enjoy!