Open GunGunGun opened 1 year ago
Test page: https://www.w3schools.com/html/html5_video.asp
How to:
https://www.w3schools.com/html/html5_video.asp
https://www.w3schools.com/html/mov_bbb.mp4
Expected result:
My browser:
Button code:
"active": "0.196969416196353", "apps": { "0.196969416196353": { "icon": "/data/icons/app.png", "errors": true, "quotes": true, "closeme": false, "changestate": "", "name": "MPV", "path": "D:\\mpv\\mpv.exe", "args": "--ytdl [HREF]", "pre": "document.currentScript.output = location.href;", "post": "", "toolbar": true, "context": [ "link", "video" ], "pattern": "", "filters": "", "redirects": "" },
You can either use pre-script to get the video URL with document.activeElement.src or create two context menu items. One for the video and one for the link.
document.activeElement.src
Test page: https://www.w3schools.com/html/html5_video.asp
How to:
https://www.w3schools.com/html/html5_video.asp
instead ofhttps://www.w3schools.com/html/mov_bbb.mp4
Expected result:
https://www.w3schools.com/html/mov_bbb.mp4
My browser:
Button code: