Breaks Youtube Autoplay

Hansen W 10 years ago updated 9 years ago 3
I've noticed a new behavior on Youtube, autoplay playlist stopped working lately. At first I submitted a request to Youtube support, but then I thought maybe one of my extensions are responsible. So I disabled all my extensions and autoplay works again. I turned them on one by one and found that having Sidewise enabled stops autoplay from working.
I experienced exactly the same.
As a workaround I disabled the code for youtube integration in sidewise. This works.

Of course you will miss some features (Show current playback time on video pages), but this is ok for me.

You can do the same:

1. Navigate in your file explorer to your chrome extensions folder: See http://stackoverflow.com/a/14544700/798588

2. Then you have to find the folder for the sidewise extension:

For me its named "biiammgklaefagjclmnlialkmaemifgo", but I don't know whether its named the same for everyone. The folder you are looking for should contain a folder named "2014.12.11.0_0". Actually, thats the version of sidewise I have installed, when you have a older version it may differ, but it should look similar.
Inside this folder are is a file named "manifest.json".You can verify that this is the sidewise extensions folder by looking in this file. You should see "sidewise" printed there pretty often.

If you don't find the correct folder you can also search for a file named "sidebar.html". 
Also make sure you are in the correct profile folder (see 1.)

3. Disable youtube integration

Open the file "content_script.js".

You can just replace everything with the contents of this:

With an online diff checker (e.g. https://www.diffchecker.com/) you can verify that the changes are what I explain next.

If the explanation doesn't interest you, you are done. Save the file and test it on a youtube playlist. 

One of the youtubePlayer related functions causes an error when autoplay should happen. You can see this if you open the console in the developer tools while on a youtube page and what what happens at the time the autoplay should happen. When you expand the error message you see "sidewise" and "youtubePlayer" there.
One could investigate this error further, but as this may take a long time I decided to just disable the youtube player integration completely. 
Therefore I out-commented the youtubePlayer functions (lines 12-19). In line 11 one of the out-commented functions ("injectYouTubeMonitoring") is called, so I out-commented that call as well.
After this change the autoplay worked for me. But the "Show current playback time on video pages" feature stopped working, but thats ok for me. As I said above, if you properly investigate and fix the error instead of disabling everything, you could keep that feature plus working autoplay, but thats too much for now.^^

Hope I could help, Best regards!
Tested with Chrome Version 39.0.2171.95 m
My Sidewise extension folder is also called "biiammgklaefagjclmnlialkmaemifgo." and thanks, I'll try it and see if it works later.