I want to create a function to stock videos with Chrome extensions.

Asked 1 years ago, Updated 1 years ago, 90 views

We are developing Chrome extensions in JavaScript.
This is my first time developing a Chrome extension, and I just learned 20 times through dot installation.I also made some samples, and I know the general structure.Also, JavaScript is a beginner, and I just learned it from dot installation.

I want to create an extension that looks like a video bookmark, and when I open a video page and click the button, the video page is stocked (bookmarked), popup.html takes thumbnails of the stored video and lists them, and I don't know how to do it.

I thought I should use chrome.bookmarks, but I don't think so because I don't add them to my browser bookmarks.
I think I should use the API embed.ly for thumbnails, but I can only vaguely understand them.
I would appreciate it if you could tell me the functions and websites that can give me hints.Thank you for your cooperation.

javascript chrome-extension

2022-09-30 19:15

1 Answers

For example, chrome.storage can be used to store information.

The way video thumbnails are provided depends on each video site (e.g., YouTube API). Recently, many sites have provided images with tags like the following, so we may be able to share some of the acquisition methods.

<meta property="og:image"content="...jpg">
<meta name="twitter: image" content="...jpg">

If you want to capture a page, you can use chrome.tabs.captureVisibleTab.


2022-09-30 19:15

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.