Skip to content

Try to get it working with Chrome again #620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 949 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
949 commits
Select commit Hold shift + click to select a range
79fb663
ermove unused file
gildas-lormeau Oct 5, 2023
a360a3b
fix potential side effects
gildas-lormeau Oct 6, 2023
3d28c3a
fix variable
gildas-lormeau Oct 6, 2023
3c52ee9
fix autosave
gildas-lormeau Oct 6, 2023
efc255b
add "WORKERS"
gildas-lormeau Oct 6, 2023
94e07c9
fix Referer "feature"
gildas-lormeau Oct 7, 2023
ec16251
update `single-file-core`
gildas-lormeau Oct 7, 2023
03138ea
add option `pass "Referer" header...`
gildas-lormeau Oct 7, 2023
e24919c
add more delay
gildas-lormeau Oct 7, 2023
b1cf9a4
update built files
gildas-lormeau Oct 7, 2023
0e3af7d
update `single-file-core`
gildas-lormeau Oct 10, 2023
9a185b3
update `single-file-core`
gildas-lormeau Oct 10, 2023
516c1a2
add template variable `{filename-extension}`
gildas-lormeau Oct 11, 2023
aaf990f
update `single-file-core`
gildas-lormeau Oct 11, 2023
d5dbacd
fix test
gildas-lormeau Oct 12, 2023
0f9d8db
update `single-file-core`
gildas-lormeau Oct 12, 2023
c5c89c8
sort resources and use replaceAll
gildas-lormeau Oct 13, 2023
26795d4
update `single-file-core`
gildas-lormeau Oct 13, 2023
39300f2
update `single-file-core`
gildas-lormeau Oct 14, 2023
7b54ff2
merge SingleFile code
gildas-lormeau Oct 16, 2023
0e89a14
add missing properties
gildas-lormeau Oct 16, 2023
5a13bc1
update built files
gildas-lormeau Oct 16, 2023
40d6a85
add missing property
gildas-lormeau Oct 18, 2023
8e10470
implement `open saved pages in a new tab`
gildas-lormeau Oct 19, 2023
83e43eb
update `single-file-core`
gildas-lormeau Oct 19, 2023
a7f90bc
update content
gildas-lormeau Oct 20, 2023
1bfc928
format code
gildas-lormeau Oct 23, 2023
966c7bf
display error banner
gildas-lormeau Oct 23, 2023
2c50527
add suppport of functions and new hostname- vars
gildas-lormeau Oct 23, 2023
4c2f5cc
update `single-file-core`
gildas-lormeau Oct 23, 2023
79511d2
fix link
gildas-lormeau Oct 24, 2023
492022b
improve performance
gildas-lormeau Oct 24, 2023
ea347c8
update built files
gildas-lormeau Oct 24, 2023
925f504
fix migration code
gildas-lormeau Oct 24, 2023
6920381
update built files
gildas-lormeau Oct 24, 2023
6cf3b4f
remove the fun (fix #2)
gildas-lormeau Oct 27, 2023
72bed89
update README.MD
gildas-lormeau Oct 27, 2023
5af67a6
update title
gildas-lormeau Oct 27, 2023
4823e80
update Install
gildas-lormeau Oct 27, 2023
0656054
upadte URL and name
gildas-lormeau Oct 27, 2023
c1b9a0d
update `single-file-core`
gildas-lormeau Oct 28, 2023
b2f4c54
rename package
gildas-lormeau Oct 28, 2023
76ec464
add functions
gildas-lormeau Oct 28, 2023
c62bab5
fix doc
gildas-lormeau Oct 29, 2023
f25102a
add missing properties
gildas-lormeau Oct 31, 2023
b63aaec
pass link
gildas-lormeau Oct 31, 2023
c1300d6
fix test
gildas-lormeau Oct 31, 2023
961e5a0
don't open the viewer when annotating the page
gildas-lormeau Oct 31, 2023
2feee6e
remove error message if any
gildas-lormeau Oct 31, 2023
9cf3b70
update `single-file-core`
gildas-lormeau Nov 1, 2023
3deba94
fix script
gildas-lormeau Nov 1, 2023
3e7ec21
update `single-file-core`
gildas-lormeau Nov 1, 2023
f08dd0d
fix interactions with the infobar
gildas-lormeau Nov 3, 2023
dd271dd
update built files
gildas-lormeau Nov 3, 2023
176b544
add option "do not append data after the ZIP data"
gildas-lormeau Nov 5, 2023
0357cc4
update translation
gildas-lormeau Nov 5, 2023
c32fbc4
ignore errors
gildas-lormeau Nov 5, 2023
ec36506
add default value
gildas-lormeau Nov 5, 2023
5ba2635
update `single-file-core`
gildas-lormeau Nov 5, 2023
ac5415f
update translation
gildas-lormeau Nov 6, 2023
6c857af
update `single-file-core`
gildas-lormeau Nov 7, 2023
a6ee5a1
update `single-file-core`
gildas-lormeau Nov 8, 2023
98b5973
update `single-file-core`
gildas-lormeau Nov 8, 2023
59ecd6a
update `single-file-core`
gildas-lormeau Nov 9, 2023
2c2cad9
update `single-file-core`
gildas-lormeau Nov 9, 2023
8005a62
Create pt_PT messages.json
gildas-lormeau Nov 10, 2023
5b49eea
update translation
gildas-lormeau Nov 10, 2023
a6cadec
update Contributors list
gildas-lormeau Nov 10, 2023
d2cf5a3
update `single-file-core`
gildas-lormeau Nov 12, 2023
31f90ac
update `single-file-core`
gildas-lormeau Nov 13, 2023
97a4b73
support filename options loaded from the page
gildas-lormeau Nov 15, 2023
45cbf6c
update `single-file-core`
gildas-lormeau Nov 16, 2023
38bae34
add `save the filename template data...` option
gildas-lormeau Nov 16, 2023
e12e76a
update translations
gildas-lormeau Nov 16, 2023
fd7b542
update `single-file-core`
gildas-lormeau Nov 16, 2023
5eb7c66
update `single-file-core`
gildas-lormeau Nov 17, 2023
b5152b5
update `single-file-core`
gildas-lormeau Nov 17, 2023
5947cec
update `single-file-core`
gildas-lormeau Nov 17, 2023
94e95f0
fix keys in other browsers than Chrome
gildas-lormeau Nov 20, 2023
50289fa
update `single-file-core`
gildas-lormeau Nov 20, 2023
34ed490
make idempotent
gildas-lormeau Nov 20, 2023
7ac149a
add missing option
gildas-lormeau Nov 21, 2023
38aab1f
ensure url is defined
gildas-lormeau Nov 21, 2023
7c1b08e
add option "Destination > upload to Dropbox"
gildas-lormeau Nov 21, 2023
0239bbd
update `single-file-core`
gildas-lormeau Nov 21, 2023
3c23b32
add note about Dropbox
gildas-lormeau Nov 21, 2023
89e1192
fix batch save
gildas-lormeau Nov 22, 2023
f5a4ceb
update built files
gildas-lormeau Nov 22, 2023
8c5c37d
update `single-file-core`
gildas-lormeau Nov 23, 2023
81ea531
update FAQ
gildas-lormeau Nov 23, 2023
d9c92d4
update `single-file-core`
gildas-lormeau Nov 27, 2023
e9987a5
update `single-file-core`
gildas-lormeau Nov 27, 2023
6819803
update `single-file-core`
gildas-lormeau Nov 28, 2023
40e6db1
update `single-file-core`
gildas-lormeau Nov 29, 2023
9ba4eae
update `single-file-core`
gildas-lormeau Dec 1, 2023
8ef4c9d
update `single-file-core`
gildas-lormeau Dec 1, 2023
60af9e3
remove code
gildas-lormeau Dec 6, 2023
96bd731
use globalThis instead of window
gildas-lormeau Dec 6, 2023
5cc6fe3
update `single-file-core`
gildas-lormeau Dec 6, 2023
6f0ecc2
Updated Chinese translation
frostblazergit Dec 9, 2023
5aa8d01
Merge pull request #13 from frostblazergit/main
gildas-lormeau Dec 9, 2023
65aa5bb
update `single-file-core`
gildas-lormeau Dec 12, 2023
f53c21c
display pointer when hovering buttons
gildas-lormeau Dec 18, 2023
10100d6
fix form validation
gildas-lormeau Dec 18, 2023
f8cd684
remove obsolete code
gildas-lormeau Dec 18, 2023
e5f94a5
fix disabled button state
gildas-lormeau Dec 18, 2023
d0e6094
fix disabled button state
gildas-lormeau Dec 18, 2023
1596864
fix disabled button state
gildas-lormeau Dec 19, 2023
546d6cd
add `%url-search-named-value` function
gildas-lormeau Dec 20, 2023
72184b2
update `single-file-core`
gildas-lormeau Dec 20, 2023
2554f60
attach handlers to document
gildas-lormeau Jan 3, 2024
952adbe
fix event handlers (vs document.open)
gildas-lormeau Jan 3, 2024
c2c93e7
add option `File format > insert embedded image`
gildas-lormeau Jan 5, 2024
9401338
improve perf
gildas-lormeau Jan 5, 2024
46367b8
format code
gildas-lormeau Jan 5, 2024
143fbd7
update `single-file-core`
gildas-lormeau Jan 5, 2024
c51723c
update Polish translation
gildas-lormeau Jan 5, 2024
415850e
update Russian translation
gildas-lormeau Jan 6, 2024
45bfb1b
update Russian translation #2
gildas-lormeau Jan 6, 2024
5222082
add variable `{save-action}`
gildas-lormeau Jan 9, 2024
5ed68bd
don't cancel action when closing the bar
gildas-lormeau Jan 11, 2024
fab09e8
update `single-file-core`
gildas-lormeau Jan 14, 2024
0737423
append bar to the document element
gildas-lormeau Jan 15, 2024
05f2b9a
update built code
gildas-lormeau Jan 16, 2024
91f497e
fix array type
gildas-lormeau Jan 16, 2024
d01dc83
use `createImageBitmap`
gildas-lormeau Jan 16, 2024
8def618
remove calls to `Array.from`
gildas-lormeau Jan 16, 2024
b61df6d
update `single-file-core`
gildas-lormeau Jan 16, 2024
2b23fd3
fix serialization issue in Chrome
gildas-lormeau Jan 16, 2024
6b94b37
fix state when cancelled
gildas-lormeau Jan 16, 2024
518172c
update built code
gildas-lormeau Jan 16, 2024
9d982e1
fix serialization issue
gildas-lormeau Jan 16, 2024
118d134
don't embed images in HTML pages
gildas-lormeau Jan 17, 2024
bcbecd2
keep embedded image when editing a saved page
gildas-lormeau Jan 17, 2024
e2aef73
fix bug in Chromium
gildas-lormeau Jan 17, 2024
8479d8a
update built code
gildas-lormeau Jan 18, 2024
a6284d7
rename variable
gildas-lormeau Feb 5, 2024
dc79113
fix duplicate stylesheet
gildas-lormeau Feb 5, 2024
4d86356
add hidden option `delayBeforeProcessing`
gildas-lormeau Feb 6, 2024
aabe4f8
move code
gildas-lormeau Feb 6, 2024
90b2573
support `insertMetaCSP` option
gildas-lormeau Feb 12, 2024
6e8979d
update dependencies
gildas-lormeau Feb 12, 2024
6ad3f5e
update dependencies
gildas-lormeau Feb 13, 2024
d09ddaf
Potential fix for Google Docs linkbubble changes
adomasven Feb 15, 2024
3442116
Additional potential fix for the google docs changes
adomasven Feb 15, 2024
5c38e5f
fix support of favicon
gildas-lormeau Feb 15, 2024
cabed93
update dependencies
gildas-lormeau Feb 15, 2024
0a29289
update dependencies
gildas-lormeau Feb 15, 2024
dff4b84
More attempts at a fix for the Google Docs linkbubble change
adomasven Feb 15, 2024
371a69d
Fix the Google Docs linkbubble not closing without confirmation
adomasven Feb 16, 2024
740f87f
Fix waitToSaveInsertion().
adomasven Feb 20, 2024
cfbbbc1
Make sure we wait for save when inserting citation placeholder
adomasven Feb 20, 2024
eb0eb60
Do not log excessive and wrong messages when sync indicator is not pr…
adomasven Feb 20, 2024
d12888e
Improve the time to pop open the citation dialog.
adomasven Feb 20, 2024
1ef3928
Potential fix for operations hanging
adomasven Feb 21, 2024
ebfa8a7
Do not reset auth email when auth token expires prematurely
adomasven Feb 21, 2024
e6c569e
update dependencies
gildas-lormeau Feb 21, 2024
e8d0161
fix mime type
gildas-lormeau Feb 21, 2024
ca5d07c
Rework the way we wait for insertion saves to sync to backend
adomasven Feb 22, 2024
9c80bdd
Fix placeholder insertion sometimes failing
adomasven Feb 22, 2024
43cec4e
Fix the document content sometimes becoming unclickable
adomasven Feb 26, 2024
c19b12c
Make our use of Docs insert link dialog invisible
adomasven Feb 26, 2024
2981e80
Rework the link insert bubble controlling logic and make more robust
adomasven Feb 28, 2024
4c1a003
Fix the insert link bubble breaking when Accept closing
adomasven Feb 28, 2024
309b93b
Manage linkbubble visibility via an injected stylesheet
adomasven Mar 5, 2024
281762d
Updated Chinese translation
frostblazergit Mar 8, 2024
b7050c9
Merge pull request #14 from frostblazergit/main
gildas-lormeau Mar 8, 2024
dba865e
update dependencies
gildas-lormeau Mar 13, 2024
5ff3675
fix typo
gildas-lormeau Mar 14, 2024
3474921
Fix for link insert bubble changes in Google Docs editor
adomasven Mar 15, 2024
bbfe0b6
Adjustments for new selection logic to make it work with Safari
adomasven Mar 18, 2024
961163b
Potential fix for some users where new citations cannot be inserted
adomasven Mar 21, 2024
b446e51
Persist Google Docs credentials between MV3 connector service worker …
adomasven Mar 20, 2024
b2bad0e
improve handling of selected content
gildas-lormeau Mar 28, 2024
535356a
fix unkown variable error
gildas-lormeau Apr 4, 2024
097dfec
convert to Uint8Array if necessary
gildas-lormeau Apr 4, 2024
8e08e1d
update dependencies
gildas-lormeau Apr 4, 2024
472ad01
chore: fix some typos
gildas-lormeau Apr 6, 2024
544a682
update dependencies
gildas-lormeau Apr 15, 2024
818e700
add option `embed image > page screenshot`
gildas-lormeau Apr 27, 2024
4d0e59d
move block
gildas-lormeau Apr 27, 2024
ca04018
update translation
gildas-lormeau Apr 29, 2024
cf165b7
remove obsolete code
gildas-lormeau Apr 29, 2024
3b7b0dc
update dependencies
gildas-lormeau Apr 29, 2024
2915789
Updated Chinese translation
frostblazergit Apr 30, 2024
b87232c
Merge pull request #15 from frostblazergit/main
gildas-lormeau Apr 30, 2024
b6648b8
add missing attribute
gildas-lormeau Apr 30, 2024
9b1467e
always scroll to the top
gildas-lormeau May 5, 2024
c8c831b
scale down the screenshot if necessary
gildas-lormeau May 6, 2024
98cd6ad
add %date-locale, %time-locale, %datetime-locale functions
gildas-lormeau May 6, 2024
f824519
update `single-file-core`
gildas-lormeau May 6, 2024
0d62180
update `single-file-core`
gildas-lormeau May 6, 2024
0817bed
add `navigator-language` template variable
gildas-lormeau May 6, 2024
06f55fa
move code
gildas-lormeau May 6, 2024
3c12368
add `Destination > upload to a REST Form API` option
gildas-lormeau May 8, 2024
6ea50cf
add missing labels
gildas-lormeau May 8, 2024
2c92f64
update built files
gildas-lormeau May 8, 2024
37e313e
fix attribute value
gildas-lormeau May 8, 2024
7bbc688
update translation
gildas-lormeau May 9, 2024
209116a
update `single-file-core`
gildas-lormeau May 12, 2024
f17d24b
update `single-file-core`
gildas-lormeau May 12, 2024
21c0a87
translate labels
gildas-lormeau May 12, 2024
dba02a0
update `single-file-core`
gildas-lormeau May 12, 2024
4c7fe63
add `blockAlternativeImages` option
gildas-lormeau May 28, 2024
45f963a
update `single-file-core`
gildas-lormeau May 28, 2024
a6b5225
Update auth flow for granular consent.
adomasven Jun 3, 2024
03dc387
"authentication" → "authorization" for Google Docs
dstillman Jun 4, 2024
3ba7455
add Dutch nl_NL translation
gildas-lormeau Jun 10, 2024
588dcae
format code
gildas-lormeau Jun 10, 2024
e03b59c
fix invalid example descriptions
gildas-lormeau Jun 16, 2024
a828cf0
add contributor
gildas-lormeau Jun 18, 2024
cb72f32
fix `passReferrerOnError` option
gildas-lormeau Jun 18, 2024
279e445
fix hidden options
gildas-lormeau Jun 18, 2024
a95a4c8
update built files
gildas-lormeau Jun 18, 2024
2c9eec2
update `single-file-core`
gildas-lormeau Jun 18, 2024
cbfbc03
merge SingleFile code
gildas-lormeau Jun 18, 2024
d0d6e7c
update built files
gildas-lormeau Jun 18, 2024
d64420c
always pass `cache`and `referrerPolicy` options to `fetch`
gildas-lormeau Jun 18, 2024
8fb26ff
always pass `cache`and `referrerPolicy` options to `fetch`
gildas-lormeau Jun 18, 2024
8da6880
update `single-file-core`
gildas-lormeau Jun 18, 2024
5e65312
update `single-file-core`
gildas-lormeau Jun 18, 2024
ca264ff
Make API key expiring code not depend on setTimeout
adomasven Jun 26, 2024
a78b52a
Fix to API key expiry code (see ca264fff)
adomasven Jul 18, 2024
8b61f35
Update Google Docs for tabbed interface. Closes #80
adomasven Aug 30, 2024
0f54696
Fix entry-spacing bibl formatting not working. Closes #81
adomasven Jan 21, 2025
2b6537a
remove subtree
Siedlerchr Feb 20, 2025
8976e12
Squashed 'zotero-connectors/' content from commit eff2dce
Siedlerchr Feb 20, 2025
8174bd5
Merge commit '8976e12dbb34a618a330b806b82df4d96241ba0a' as 'zotero-co…
Siedlerchr Feb 20, 2025
08ee8f7
fix readme
Siedlerchr Feb 20, 2025
788aab0
remove
Siedlerchr Feb 20, 2025
24509ac
add subtree
Siedlerchr Feb 20, 2025
ca2fd0f
add to gitignore
Siedlerchr Feb 20, 2025
f9f73ec
remove utils
Siedlerchr Feb 20, 2025
40ff8a5
Squashed 'zotero-connectors/src/translate/' content from commit 1f6a1…
Siedlerchr Feb 20, 2025
a9bb19c
Merge commit '40ff8a5a28f1883993bef12ee32ab68e902f70ea' as 'zotero-co…
Siedlerchr Feb 20, 2025
3ac91a4
Squashed 'zotero-connectors/src/utilities/' content from commit 43142…
Siedlerchr Feb 20, 2025
5eb3ab4
Merge commit '3ac91a4e6f1a9d072ec2874b98ef84f468ad94c6' as 'zotero-co…
Siedlerchr Feb 20, 2025
e84b8b2
Add 'zotero-connectors/src/zotero-google-docs-integration/' from comm…
Siedlerchr Feb 20, 2025
600d2a9
Squashed 'zotero-scholar-citations/' content from commit d2a392a2c
Siedlerchr Feb 20, 2025
4f4a1c4
Merge commit '600d2a9b16e002caf71f80011b13bde4c18bd18f' as 'zotero-sc…
Siedlerchr Feb 20, 2025
73de8f9
update deps
Siedlerchr Feb 20, 2025
c5fae40
exeucte and update ulp task
Siedlerchr Feb 20, 2025
b04b770
execute script
Siedlerchr Feb 20, 2025
85be198
adapt readme
Siedlerchr Feb 20, 2025
44009a4
remove no longer existing scripts from manifest file to get it compile
Siedlerchr Feb 20, 2025
c5bf401
remove not existing stuff
Siedlerchr Feb 20, 2025
191256f
add hint on lib single file
Siedlerchr Feb 21, 2025
32b578a
Add 'zotero-connectors/lib/SingleFile-Lite/' from commit '5e653124c1c…
Siedlerchr Feb 21, 2025
f2fcacb
add new subtree
Siedlerchr Feb 21, 2025
bc6deb4
rework background js stuff and manifest
Siedlerchr Feb 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,5 @@ fabric.properties
# Support for Project snippet scope

# End of https://www.toptal.com/developers/gitignore/api/intellij,visualstudiocode

zotero-connectors/src
45 changes: 30 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
# JabRef Browser Extension

> [Firefox](https://addons.mozilla.org/en-US/firefox/addon/jabref/?src=external-github) - [Chrome](https://chrome.google.com/webstore/detail/jabref-browser-extension/bifehkofibaamoeaopjglfkddgkijdlh) - [Edge](https://microsoftedge.microsoft.com/addons/detail/pgkajmkfgbehiomipedjhoddkejohfna) - [Vivaldi](https://chrome.google.com/webstore/detail/jabref-browser-extension/bifehkofibaamoeaopjglfkddgkijdlh)

Browser extension for users of the bibliographic reference manager [JabRef](https://www.jabref.org/).
It automatically identifies and extracts bibliographic information on websites and sends them to JabRef with one click.

When you find an interesting article through Google Scholar, the arXiv or journal websites, this browser extension allows you to add those references to JabRef.
Even links to accompanying PDFs are sent to JabRef, where those documents can easily be downloaded, renamed and placed in the correct folder.
Even links to accompanying PDFs are sent to JabRef, where those documents can easily be downloaded, renamed and placed in the correct folder.
[A wide range of publisher sites, library catalogs and databases are supported](https://www.zotero.org/support/translators).

_Please post any issues or suggestions [here on GitHub](https://github.com/JabRef/JabRef-Browser-Extension/issues)._

## Installation and Configuration

Normally, you simply install the extension from the browser store and are ready to go.
> [Firefox](https://addons.mozilla.org/en-US/firefox/addon/jabref/?src=external-github) - [Chrome](https://chrome.google.com/webstore/detail/jabref-browser-extension/bifehkofibaamoeaopjglfkddgkijdlh) - [Edge](https://microsoftedge.microsoft.com/addons/detail/pgkajmkfgbehiomipedjhoddkejohfna) - [Vivaldi](https://chrome.google.com/webstore/detail/jabref-browser-extension/bifehkofibaamoeaopjglfkddgkijdlh)

Sometimes, a manual installation is necessary (e.g. if you use the portable version of JabRef). In this case, please follow the steps described [in the user manual](https://docs.jabref.org/import-export/import/jabref-browser-extension).

## Usage

After the installation, you should be able to import bibliographic references into JabRef directly from your browser.
Just visit a publisher site or some other website containing bibliographic information (for example, [the arXiv](http://arxiv.org/list/gr-qc/pastweek?skip=0&show=5)) and click the JabRef symbol in the Firefox search bar (or press <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>J</kbd>).
Once the JabRef browser extension has extracted the references and downloaded the associated PDF's, the import window of JabRef opens.

You might want to configure JabRef so that new entries are always imported in an already opened instance of JabRef.
For this, activate "Remote operation" under the Network tab in the JabRef Preferences.


## About this Add-On

Internally, this browser extension uses the magic of Zotero's site translators.
Expand All @@ -36,16 +38,18 @@ Note that this browser extension does not make any changes to the Zotero databas
JabRef browser extension uses the [WebExtensions API](https://developer.mozilla.org/en-US/Add-ons/WebExtensions).

Preparation:

1. Install [Node.js](https://nodejs.org) (e.g., `choco install nodejs`)
2. Install [gulp](https://gulpjs.com/) and [web-ext](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Getting_started_with_web-ext): `npm install --global gulp-cli web-ext`
3. [Fork the repository](https://help.github.com/articles/fork-a-repo/).
4. Checkout the repository.
5. Install development dependencies via `npm install`.
6. Start browser with the add-on activated:
Firefox: `npm run dev:firefox`
Chrome: `npm run dev:opera`
Chrome: `npm run dev:chrome`

Now just follow the typical steps to [contribute code](https://guides.github.com/activities/contributing-to-open-source/#contributing):

1. Create your feature branch: `git checkout -b my-new-feature`
3. Build and run the add-on as described above.
3. Commit your changes: `git commit -am 'Add some feature'`
Expand All @@ -54,28 +58,39 @@ Now just follow the typical steps to [contribute code](https://guides.github.com

To update dependencies:

- `npm outdated` gives an overview of outdated packages ([doc](https://docs.npmjs.com/cli/outdated))
- `npm-upgrade` updates all packages
- `npm install` install updated packages
- running
```
- `npm outdated` gives an overview of outdated packages ([doc](https://docs.npmjs.com/cli/outdated))
- `npm-upgrade` updates all packages
- `npm install` install updated packages

If you execute it for the first time you have to use git subtree add and delete the module subdirs under zotero-connectors/src/ and zotero-connectors/lib

- running

``` bash
git subtree pull --prefix zotero-connectors https://github.com/zotero/zotero-connectors.git master --squash
git subtree pull --prefix zotero-connectors/src/zotero https://github.com/zotero/zotero.git master --squash
git subtree pull --prefix zotero-connectors/src/zotero https://github.com/zotero/zotero.git main --squash
git subtree pull --prefix zotero-connectors/src/translate https://github.com/zotero/translate.git master --squash
git subtree pull --prefix zotero-connectors/src/utilities https://github.com/zotero/utilities.git master --squash
git subtree pull --prefix zotero-connectors/lib/SingleFile-Lite https://github.com/gildas-lormeau/SingleFile-Lite.git 5e653124c1cfc58cb5209b9bd2db93f5f1020c11 --squash
git subtree pull --prefix zotero-connectors/src/zotero/src/resource/schema/global
https://github.com/zotero/zotero-schema.git 1b12272d44134a652519e9192e5a936ac9fcd707 --squash
git subtree pull --prefix zotero-connectors/lib/translate
https://github.com/zotero/translate.git master --squash
git subtree pull --prefix zotero-scholar-citations https://github.com/MaxKuehn/zotero-scholar-citations.git master --squash
```

updates the `zotero-connectors` submodule and the `zotero-scholar-citations` submodule

- `gulp update-external-scripts` copies and post-processes the scripts in the folders `zotero-connectors` and `zotero-scholar-citations` to the folder `external-scripts`
- `gulp update-external-scripts` copies and post-processes the scripts in the folders `zotero-connectors` and `zotero-scholar-citations` to the folder `external-scripts`

## Release of new version

- Increase version number in `manifest.json`
- `npm run build`
- Upload to:
- https://addons.mozilla.org/en-US/developers/addon/jabref/versions/submit/
- https://chrome.google.com/u/2/webstore/devconsole/26c4c347-9aa1-48d8-8a22-1c79fd3a597e/bifehkofibaamoeaopjglfkddgkijdlh/edit/package
- https://addons.opera.com/developer/upload/
- https://developer.apple.com/app-store-connect/
- <https://addons.mozilla.org/en-US/developers/addon/jabref/versions/submit/>
- <https://chrome.google.com/u/2/webstore/devconsole/26c4c347-9aa1-48d8-8a22-1c79fd3a597e/bifehkofibaamoeaopjglfkddgkijdlh/edit/package>
- <https://addons.opera.com/developer/upload/>
- <https://developer.apple.com/app-store-connect/>
- Remove the `key` field in `manifest.json` and build again. Then upload to:
- https://partner.microsoft.com/en-us/dashboard/microsoftedge/2045cdc1-808f-43c4-8091-43e2dcaff53d/packages
- <https://partner.microsoft.com/en-us/dashboard/microsoftedge/2045cdc1-808f-43c4-8091-43e2dcaff53d/packages>
Loading
Loading