Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dthung1602 committed May 9, 2022
1 parent 2cbdcd5 commit 75e678b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
build:
./build.sh
v2:
rm manifest.json \
ln -s manifest-v2.json manifest.json
v3:
rm manifest.json \
ln -s manifest-v3.json manifest.json
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ To be updated
rm manifest.json
ln -s manifest-v3.json manifest.json
```
or simply
```shell
make v3
```
- Go to [chrome://extensions/](chrome://extensions/)
- Click on `Load unpacked` button on the top left
- Select the cloned repo
Expand All @@ -74,12 +78,16 @@ To be updated
rm manifest.json
ln -s manifest-v2.json manifest.json
```
or simply
```shell
make v2
```
- Go to [about:debugging#/runtime/this-firefox](about:debugging#/runtime/this-firefox)
- Click on `Load Temporary Add-on`
- Select the manifest.json file
- Note that Chrome can also load manifest v2, but this will be deprecated in June 2023
4. Package for distribution:
- Run `build.sh`
- Run `build.sh` (or `make build`)
- The output zip files are in the `build` directory
<!-- CONTRIBUTING -->
## Contributing
Expand Down
2 changes: 1 addition & 1 deletion popup/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<label for="check-interval" title="How often the spamminator search & remove spams">
Clear spam interval (in millisecond)
</label>
<input id="check-interval" value="" type="number">
<input id="check-interval" value="" type="number" min="200" step="100">
</div>
<div>
<label for="ban-domain" title="Require page refresh to take affect">
Expand Down
2 changes: 1 addition & 1 deletion scripts/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function migrateToVer1() {
version: "1.0",
banDomains: DEFAULT_BAN_DOMAINS,
enable: true,
clearSpamInterval: 1000,
clearSpamInterval: 1500,
cleanSpamAction: "replace-with-image",
cleanSpamText: "",
cleanSpamImage: "random",
Expand Down

0 comments on commit 75e678b

Please sign in to comment.