ViewTube & YouTube
sebaro
2020-08-21/13:29
Starting with version 2020.08.20, ViewTube supports YouTube's default layout only, for both desktop (www.youtube.com) and mobile (m.youtube.com) versions.

For the old layout (the user-agent workaround) use this version of the script:
http://sebaro.pro/viewtube/files/viewtube-old-youtube.user.js

Afshinbg
2020-10-19/14:57
ok!

Newgrounds
Hugh
2020-10-19/14:33
I'm hoping you can work your magic on this site, presumably for ViewTube+

https://www.newgrounds.com/portal/view/285267

I used to be able to get the mp4 link from the page source but they've done an update and now I can't even get the videos to play with their new player and no mp4 link in the source that I can spot.

Here's what it used to look like if that helps.

https://web.archive.org/web/20180316152016/https://www.newgrounds.com/portal/view/285267

sebaro
2020-10-19/20:54
The videos from:
https://www.newgrounds.com/portal/view/285267
are here:
https://www.newgrounds.com/portal/video/285267

But you have to use a request header:

curl https://www.newgrounds.com/portal/video/285267 -H "x-requested-with: XMLHttpRequest"

I'll add to ViewTube+ if you want.

Hugh
2020-10-20/16:40
I have heard of curl but no clue how to use it.

Can it be achieved with ffmpeg? I have a bit of knowledge with that.

sebaro
2020-10-20/21:05
You can use the browser Developer Tools, on Network tab search for "portal/video", this contains the video streams.

Hugh
2020-10-21/16:30
All candidate resources failed to load. Media load paused.

Lol. I guess I would have spotted them if I was meant to.

I guess I'll figure out curl. I seem to have found a decent windows guide.

sebaro
2020-10-21/17:00
Open DevTools, go to Network, enter "portal/video" in the search input bar.

Star the video playback, you will see links like this:
https://www.newgrounds.com/portal/video/285267
Click the link on the left, on the right you'll have tabs for headers, preview, response etc.

Click Response, these contains the video streams for different resolutions, in the "src" property, remove the escape backslashes:
https://uploads.ungrounded.net/alternate/62000/62165_alternate_863.1080p.mp4

Hugh
2020-10-21/17:13
I can't actually start the video playback with their new player. Won't load for me at all. I must have a crap browser or disabled something.

I got curl working on windows thanks to your cmd. Who knows how long that'll last though before they mess with that too.

on Youtube not work
Javad
2020-10-20/06:19
on youtube not work with too many scripts