0.7.1 • Published 3 months ago

webext-store-incompat-fixer v0.7.1

Weekly downloads
40
License
MIT
Repository
github
Last release
3 months ago

webext-store-incompat-fixer

Package which clones a packed webextension and fixes incompatibilities with certain extension stores.

usage

webext-store-incompat-fixer --input somepackage.zip --stores edge,whale,firefox

or const webextStoreIncompatFixer = require('webext-store-incompat-fixer'); webextStoreIncompatFixer({ 'inputPath': 'some-package.zip', 'stores': 'edge', 'whale', 'firefox' }).then(function () { console.log('finished'); })

Keep in mind it will only create separate packages if and only if adaptions are needed.

background

The idea behind this package is to allow one to keep one code base for all stores. This package doesn't cover all incompatibilities. If one is missing, feel free to open an issue.

The adaptions are mostly needed because of issues in the store. This means once those are fixed, adaptions in this package will be removed as well.

Google Chrome adaptions

The manifest.name and manifest.short_name will be reduced to 45 characters if longer than 45 characters.

Mozilla Firefox adaptions

The manifest.name and manifest.short_name will be reduced to 45 characters if longer than 45 characters.

Microsoft Edge adaptions (Chromium-based)

The microsoft edge store currently requires store descriptions for each language. Say you support 50 languages, you will have to create descriptions for each language in the store.

To overcome this, we make use of the language detection system of the edge store. It will only ask for additional assets if there is a translation for items found in the manifest file. Thus we remove those translations and keep others.

To force include a certain language, use the --edge-locale-inclusions option with a comma separated list of locales.

Microsoft confirmed this issue will be fixed at some point. Once they have, this adaption will be removed.

Naver Whale adaptions

The whale store currently doesn't handle some characters. For now we remove the ™ symbol. Open an issue if there are more characters we should handle. Bug report: https://forum.whale.naver.com/topic/39748/

In addition, the whale store doesn't accept all language codes. Specifically, it requires language suffix to be a country code, which doesn't work for zh_Hans and zh_Hant. Those language files are moved to zh_CN and zh_TW if not found. Else it will remove the directories. Bug report: https://forum.whale.naver.com/topic/39749/

The Whale team mentioned they won't fix the language issue however they are currently looking into the character issue.

See also: https://forum.whale.naver.com/topic/27841/

Apple Safari adaptions

The sandbox directive is removed from the content_security_policy field.

0.7.1

3 months ago

0.7.0

4 months ago

0.6.0

4 months ago

0.5.1

5 months ago

0.4.1

10 months ago

0.4.0

11 months ago

0.4.3

7 months ago

0.4.2

10 months ago

0.3.3

1 year ago

0.3.2

1 year ago

0.1.41

2 years ago

0.1.42

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.3.1

2 years ago

0.1.37

2 years ago

0.1.40

2 years ago

0.1.38

2 years ago

0.1.39

2 years ago

0.1.36

3 years ago

0.1.35

3 years ago

0.1.32

3 years ago

0.1.33

3 years ago

0.1.30

3 years ago

0.1.31

3 years ago

0.1.29

3 years ago

0.1.27

3 years ago

0.1.28

3 years ago

0.1.24

3 years ago

0.1.25

3 years ago

0.1.26

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.20

3 years ago

0.1.21

3 years ago

0.1.19

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.15

3 years ago

0.1.16

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago