Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External Application can't grab video URL if Link Context+Video Context both enabled #89

Open
GunGunGun opened this issue May 29, 2023 · 1 comment

Comments

@GunGunGun
Copy link

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 of https://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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants