TTT
TTT

Reputation: 183

How can I know a user is downloading a file from their Chrome

I want to create a Chrome extension which can forward the download links to my server.

I have two questions:

  1. How can I know if a user is downloading a file from Chrome?
  2. Is there anyway can let Chrome popup my Chrome extension instead of its default download bar?

Upvotes: 1

Views: 170

Answers (2)

pimvdb
pimvdb

Reputation: 154828

Both things are (currently) impossible to implement because there is no "download" module for Google Chrome extensions.

See the Downloads Extensions API Proposal; such a feature may be implemented in the future.

Upvotes: 4

Ahmet Can Güven
Ahmet Can Güven

Reputation: 5462

You can detect browser with javascript.

Browser Codename: navigator.appCodeName

Browser Name: navigator.appName

Browser Version: navigator.appVersion

Platform: navigator.platform

User-agent header: navigator.userAgent

You can try these functions at this link

Edit: Misunderstanding...

Upvotes: 0

Related Questions