External Application can't grab video URL if Link Context+Video Context both enabled
GunGunGun opened this issue · 1 comments
GunGunGun commented
Test page: https://www.w3schools.com/html/html5_video.asp
How to:
- Open test page
- Run the video
- Right-click on the video and run External Application
- External Apllication opens the URL of the webpage
https://www.w3schools.com/html/html5_video.asp
instead ofhttps://www.w3schools.com/html/mov_bbb.mp4
Expected result:
- External Application should opens
https://www.w3schools.com/html/mov_bbb.mp4
My browser:
- Firefox 113
- Newest External Application
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": ""
},
andy-portmen commented
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.