Search YouTube without interrupting the video, by loading the search results in the related video bar
< Opiniones de Youtube - Search While Watching Video
Hi CY Fung,
Somehow I don't always get e-mail notifications, so sorry again for the delay.
I've applied your fixes to the script. I also saw that these are the fixes needed to make the Queue script work again.
If you don't mind I would be willing to apply the fixes there too and list the script again. (I'll also credit you)
Have a nice day,
Cptmathix
Yes. Feel free to do so.
Hi Cptmathix,
It's time to update the scripts again.
Recently, YouTube engineers try to extract the non-DOM methods and properties out from the DOM.
You need to change as follow.
add this to the beginning of
function youtube_search_while_watching_video()
const insp = o => o ? (o.polymerController || o.inst || o || 0) : (o || 0);
Inside
function resetSuggestions()
, replacelet data = itemSectionRenderer.__data.data;
tolet data = insp(itemSectionRenderer).__data.data;
Foresee that this will happen to the player element too. Inside
getVideoPlayer()
, replacedocument.getElementById('movie_player');
toinsp(document.getElementById('movie_player'));
Remarks
The controller extraction is already implemented to
itemSectionRenderer
so reset suggestion would not work in the current version2.4.6
asitemSectionRenderer.__data
is undefined