Skip to content

Commit

Permalink
Use manifest v3 for both firefox and chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-james-watson committed Aug 25, 2024
1 parent b70d8ea commit 4160d27
Show file tree
Hide file tree
Showing 19 changed files with 11 additions and 168 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
*.swp
_metadata
*.zip
.DS_Store
File renamed without changes.
2 changes: 1 addition & 1 deletion manifest-v3/Makefile → Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: run clean

old-reddit-redirect.zip: *.json *.js img/* *.md *.txt
old-reddit-redirect.zip: *.json img/* *.md *.txt
zip -r old-reddit-redirect.zip * -x .git/* -x img/screenshot.png -x .gitignore -x Makefile -x _metadata/*

run:
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Also has a new minor fixes and quality of life improvements like:
- `np.reddit.com`
- `amp.reddit.com`
- `i.reddit.com`
- `i.redd.it`
- `preview.redd.it`

#### Whitelisted domains

Expand All @@ -31,11 +33,6 @@ Also has a new minor fixes and quality of life improvements like:

## Development

> [!NOTE]
> There are currently two separate versions of this extension - manifest V2 and manifest V3.
> Chrome is phasing out manifest V2, so we're forced to migrate to to avoid the extension getting removed. However, the V3 version currently doesn't seem compatible with Firefox, so V2 will be hanging around for a while.
> TL;DR: Chrome = V3, Firefox = V2
Ensure you have [`node`](https://nodejs.org/en) installed. Then run `make run` to start the live-reloading development server. This will open a browser window with the extension installed for testing.

Once you've verified things are working correctly locally you can fork this repo and submit a pull request with your changes.
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
10 changes: 0 additions & 10 deletions manifest-v2/Makefile

This file was deleted.

86 changes: 0 additions & 86 deletions manifest-v2/background.js

This file was deleted.

37 changes: 0 additions & 37 deletions manifest-v2/manifest.json

This file was deleted.

4 changes: 0 additions & 4 deletions manifest-v2/styles.css

This file was deleted.

1 change: 0 additions & 1 deletion manifest-v3/.gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions manifest-v3/LICENSE.txt

This file was deleted.

Binary file removed manifest-v3/img/icon128.png
Binary file not shown.
Binary file removed manifest-v3/img/icon48.png
Binary file not shown.
Binary file removed manifest-v3/img/screenshot.png
Binary file not shown.
8 changes: 7 additions & 1 deletion manifest-v3/manifest.json → manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"name": "Old Reddit Redirect",
"description": "Ensure Reddit always loads the old design",
"version": "2.0.0",
"version": "2.1.0",
"manifest_version": 3,
"browser_specific_settings": {
"gecko_android": {},
"gecko": {
"id": "old-reddit-redirect@tom-james-watson"
}
},
"icons": {
"48": "img/icon48.png",
"128": "img/icon128.png"
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 4160d27

Please sign in to comment.