Make download button work
This commit is contained in:
parent
7c3fd294a5
commit
a36691483f
5 changed files with 477 additions and 0 deletions
|
|
@ -3,10 +3,32 @@
|
|||
"name": "Reilly SafariBooks Downloader",
|
||||
"description": "Download O'Reilly learning content as EPUB files using a port of safaribooks.py.",
|
||||
"version": "0.1.0",
|
||||
"background": {
|
||||
"service_worker": "background.js",
|
||||
"type": "module"
|
||||
},
|
||||
"offscreen": {
|
||||
"page": "offscreen.html",
|
||||
"reasons": [
|
||||
"DOM_PARSER"
|
||||
],
|
||||
"justification": "Parse book HTML to build EPUB files in a DOM-enabled context"
|
||||
},
|
||||
"action": {
|
||||
"default_title": "SafariBooks Downloader",
|
||||
"default_popup": "index.html"
|
||||
},
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": [
|
||||
"https://learning.oreilly.com/library/view/*"
|
||||
],
|
||||
"js": [
|
||||
"content.js"
|
||||
],
|
||||
"run_at": "document_idle"
|
||||
}
|
||||
],
|
||||
"permissions": [
|
||||
"downloads",
|
||||
"cookies",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue