Dumb question
Hugh
2021-05-02/15:38
Hi sebaro,

Is there a difference between using @match vs @include ?

sebaro
2021-05-02/21:33
The @match metadata is newer, considered faster and safer (has strict rules on what the "*" character means) but it doesn't support regular expressions:
https://developer.chrome.com/docs/extensions/mv3/match_patterns/

Moving on...
Hugh
2021-05-03/14:38
I use this for YouTube.

Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148

I'm on Desktop and use Basilisk browser. I use the mobile domain because it loads so much quicker akin to their old layout. When an in player advert loads it seems to be stopping your VT script.

Also only the progressive video options are available on mobile. Unsure if that's supposed to be intended. Maybe it's due to the spoofing.

Hugh
2021-05-03/14:41
EDIT:Stopping was crappy English. The script doesn't load at all.

sebaro
2021-05-03/21:23
You mean if a video has ads the script doesn't load? If there are no ads it loads?
The script gets the same videos for both desktop and mobile. If you don't see the adaptive streams it means they are not available for mobile or the user-agent.

Hugh
2021-05-04/14:18
It doesn't happen all the time.

Sometimes script will load first time and other times it won't. If I refresh the page then it loads. I believe it's because of advert(s) interfering but I can't confirm.

There is no mobile ua that supports adaptive? I'd pick the most current broadly supported to spoof but it's rather difficult to find them. I did have a good source once but lost the link on a failure. That's not imperative but it'd be neat to have the script load first time.

sebaro
2021-05-05/12:35
Can you try with the same user-agent in Chromium/Firefox?

Hugh
2021-05-05/16:49
Not really in my situation.

I had a look around and I found this which sounds like my issue.

https://greasyfork.org/en/scripts/414001-reload-youtube-once/code

I added to it

// @run-at document-start

I thought I fixed it, it broke the thumbnail though, but now after restarting browser it doesn't work at all and the url in address bar won't change when I click another video lol.

sebaro
2021-05-05/21:21
You can use developer tools in both Chromium and Firefox, and a new device in emulated devices with any user-agent you want. That's how I test it.

Pls. have SaveTubePlus install on these sites
Robert
2021-05-05/19:38
Could you please get SaveTube(+) to show up on these sites:

https://www.byoblu.com/2021/02/18/regeni-un-agente-segreto-mandato-da-londra-fulvio-grimaldi/

and:

https://reseauinternational.net/nayez-plus-peur-cest-la-peur-qui-rend-malade/

- the embedded video at the bottom.

(For some reason the hosting site Odysee itself gives an error upon loading in my usual browsers)

Thank you!

sebaro
2021-05-05/21:34
SaveTube+ doesn't work for embedded videos.
You can try youtube-dl, both embedded video sites are supported: odysee.com, vhx.tv.

Robert
2021-05-08/19:10
Apologies for the delay getting back. What is youtube-dl?

sebaro
2021-05-08/21:34
A video download tool, it supports many video sites:
http://ytdl-org.github.io/youtube-dl/download.html

Robert
2021-05-08/23:27
Good, will look, thx again for your kind help.

not work
osama
2021-05-15/13:14
not workinh with youtube