Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试编写一个 Firefox 扩展程序,当用户在网页上右键单击它时,它可以获得视频(youtube/vimeo)属性(路径等)。
我看到的问题是右键单击为播放器带来了本机菜单系统。
任何指针都会非常有帮助。
谢谢。
那是因为视频播放器使用的是 Flash,它位于 Flash 嵌入对象中。该对象与 XUL 无关,并且不能被 firefox 中的任何扩展操作。您真正想要做的是对 Flash 进行扩展,而这是您无法做到的。
我能看到的唯一可能的解决方案是用 XUL“堆栈”对象覆盖 flash 对象本身,并将原始 flash 对象作为堆栈对象的子对象。