搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How to retrieve data from browser tabs?

  • 3 个回答
  • 2 人有此问题
  • 20 次查看
  • 最后回复者为 NoahSUMO

more options

Hello

I'm trying to extract data from the Firefox browser by dragging tabs into a Windows/Mac/Linux application. Specifically, I was hoping to grab HTML medadata and current video time (eg 1:23 of 5:00) of YouTube pages for off-browser bookmark storage and reactivation.

I could not find online help or documentation covering this issue. Any suggestions?

Thanks

Hello I'm trying to extract data from the Firefox browser by dragging tabs into a Windows/Mac/Linux application. Specifically, I was hoping to grab HTML medadata and current video time (eg 1:23 of 5:00) of YouTube pages for off-browser bookmark storage and reactivation. I could not find online help or documentation covering this issue. Any suggestions? Thanks

被采纳的解决方案

It's a extra command added to the end of the Youtube url. You have to add &t=*m*s to the end of the url. Where the asterisks are, you replace them with numbers. For example: http://www.youtube.com/watch?v=Zb7gTeLmpHs&t=3m24s

The m is for minutes and s for seconds.

You can also find this information by loading a Youtube video, dragging the time slider to the time you want, pause the video, then right-click on the video and choose:
"Copy video URL at current time".

定位到答案原位置 👍 2

所有回复 (3)

more options

Dragging a tab tears it out of its current window to a new window, so that isn't going to work.

If you drag the favicon (site identity icon) from the urlbar, you get the URL and page title, and the receiving application decides what to do with it. I don't think any page content is provided to the receiving application.

Perhaps you should consider creating an add-on or userscript to extract the information you want and load it on the clipboard, or export it to some kind of storage? I'm not sure you can get information from the Flash player plugin, if the page is using it. (For that matter, I don't know whether you can get the current video time from the native HTML5 video player, either.)

more options

Okay, well in the past I've bookmarked a Youtube page mid-video, and upon re-opening the bookmark I'm brought to the exact same frame in the video.

Do you understand why that would be?

more options

选择的解决方案

It's a extra command added to the end of the Youtube url. You have to add &t=*m*s to the end of the url. Where the asterisks are, you replace them with numbers. For example: http://www.youtube.com/watch?v=Zb7gTeLmpHs&t=3m24s

The m is for minutes and s for seconds.

You can also find this information by loading a Youtube video, dragging the time slider to the time you want, pause the video, then right-click on the video and choose:
"Copy video URL at current time".