Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to retrieve data from browser tabs?

  • 3 ردود
  • 2 have this problem
  • 1 view
  • آخر ردّ كتبه 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".

Read this answer in context 👍 2

All Replies (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".