Minimizes all of the windows for Protocol
grey_rat
2021-09-27/16:17
Can I add this setting to the script?
https://docs.microsoft.com/en-us/windows/win32/shell/shell-minimizeall

For example, after clicking the link, the browser and cmd collapse and then the player starts

sebaro
2021-09-27/21:33

grey_rat
2021-09-28/17:52
While I use

taskkill /IM mpc-hc.exe
cscript.exe C:\viewtube_mpc\script.js //Nologo
set video=%1
set video=%video:viewtube:=%
"C:\Program Files\MPC-HC\mpc-hc.exe" %video% /fullscreen

and script.js
(new ActiveXObject('Shell.Application')).MinimizeAll();


I would like to open all the windows after closing the player
for example

script2.js
(new ActiveXObject('Shell.Application')).UndoMinimizeAll();

and 2.bat
waiting for it to close 1.bat
cscript.exe C:\viewtube_mpc\script2.js //Nologo


Is it possible?

sebaro
2021-09-28/21:13
If the batch scripts are synchronous, then it should work. Add the second cscript.exe command after the video player command.

grey_rat
2021-09-29/00:01
Yes! It works. Thank you :)

taskkill /IM mpc-hc.exe
cscript.exe C:\viewtube_mpc\script.js //Nologo
set video=%1
set video=%video:viewtube:=%
"C:\Program Files\MPC-HC\mpc-hc.exe" %video% /fullscreen /close
cscript.exe C:\viewtube_mpc\script2.js //Nologo

grey_rat
2021-09-29/00:21
Hurried.
If you do not close the player and click the viewtube: link again, the script fires with an error

grey_rat
2021-09-29/02:14
somehow
...
"C:\Program Files\MPC-HC\mpc-hc.exe" %video% /fullscreen /close
if errorlevel 0 goto M1
:M1
cscript.exe C:\viewtube_mpc\script2.js //Nologo
goto exit

but does not work

sebaro
2021-09-29/10:09
You mean he video player doesn't close after playback? Add "/play" to command line or check the settings for "after playback" option.

You can test this by adding these in a batch file and run it in cmdprompt or powershell:

cscript.exe C:\viewtube_mpc\script.js //Nologo
"C:\Program Files\MPC-HC\mpc-hc.exe" "SOMEVIDEO" /fullscreen /play /close
cscript.exe C:\viewtube_mpc\script2.js //Nologo

grey_rat
2021-09-30/19:42
The bat file does not partially work if you click another viewtube link when the player is open

sebaro
2021-09-30/21:12
Doesn't this line kill the player?
taskkill /IM mpc-hc.exe

grey_rat
2021-09-30/21:43
Kill.

But for some reason, the script.js or script2.js remains in limbo.
I did it, but it doesn't work.
taskkill /IM script.js
taskkill /IM script2.js
For the bat file to work again, you must close it or the player before restarting.

sebaro
2021-10-01/21:20
Kill cscript.exe.

Can I use this extension on Chromium in Ubuntu 18.04
Humming Owl
2021-09-30/04:28
Hello, I like this extension for Windows but I wondered if it can be used in Linux, I can not make it work on Ungoogled Chromium under Ubuntu 18.04 for VLC for example. I do not know if I need something else to do so. Cheers and thanks for the extension.

sebaro
2021-09-30/08:53
What type of playback do you want to use, HTML5 Video, NPAPI (plugin) or external player?

grey_rat
2021-09-30/19:51
Theoretically, you can force Linux to play the VLC plugin in Firefox 84.0.2 32bit. If you change the VLC plug-in deb version 2.0.6.
deb package 2.0.6 can be unpacked and some edits made to text files (roughly the same as I did for Windows), but I don't know how to collect back the deb package.

Humming Owl
2021-09-30/23:24
I would like to use the external video player VLC. But I want to know how to use a plugin as well. Thanks.

sebaro
2021-10-01/21:25
If you can use a browser that still has NPAPI support install browser-plugin-vlc or npapi-vlc. For external player create the files as described on the script's web page.

Humming Owl
2021-10-04/21:53
Thanks again. Later I saw that Chromium dropped NPAPI support since 2015 (sorry for the inconvenience). Thanks @grey_rat for the option of using Firefox 85. By the way, in windows, is it possible to make the NPAPI WMP plugin to work on WEBM video formats? I tried installing K-Lite Codec Pack (Basic) and that let me see WEBM videos on WMP directly but when using the NPAPI plugin of WMP it does not load the video. Cheers.

grey_rat
2021-10-05/23:38
WMP plugin and K-Lite Codec Pack in Windows Vista+ use Windows Media Foundation https://en.m.wikipedia.org/wiki/Media_Foundation
WMP plugin + K-Lite playback = CPU usage is to browser playback
in K-lite, turning off WMF globally for all programms
WMP plugin does not make sense to use in Vista +

VLC plugin works with Firefox 84.0.2. In 85 does not work

grey_rat
2021-10-05/23:56

Humming Owl
2021-10-06/04:50
Yes, I did not type the correct version of Firefox. Thanks for the info!

Youtube video stops playing
Yakov
2021-10-17/13:14
The YouTube script fetches a slightly different link than in standard poker, so the download speed is very slow and the video stops periodically. Can you fix this problem?

sebaro
2021-10-17/22:31
I have the same issue, but only with external players, with the "Video" option is fine.

Try this update:
http://sebaro.pro/viewtube/files/viewtubetest.user.js

Yakov
2021-10-18/00:35
Thank you very much. Now videos in the full version of the site are not interrupted and start instantly. Can you do the same for the mobile version?

sebaro
2021-10-18/21:26
Added for mobile.