diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1da9acd..417c7bf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: photon +name: myip.wtf on: push: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ca088ee..aed1d4a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: photon +name: myip.wtf on: push: diff --git a/README.md b/README.md index 93b4232..51bce02 100644 --- a/README.md +++ b/README.md @@ -1,52 +1,39 @@ ## About -Photon is a Chromium extension that provides information about -the public IP address you are using to connect to the internet. When -the extension's icon is clicked, the extension makes a request to the -[clean.wtfismyip.com](https://clean.wtfismyip.com) -web service to discover information about your public IP address, and -then displays that information in a simple HTML view. +myip.wtf relays information about your public IP address +from +[clean.myip.wtf.com/json](https://clean.myip.wtf.com/json) +to your browser. -## Features +## Demo -* Displays a public IP address. -* Displays the Internet Service Provider (ISP) associated with a public IP address. -* Displays the city associated with a public IP address. -* Displays the country associated with a public IP address. -* Displays whether or not a public IP address is a Tor exit node. +

+ +

## Install -Produce the "build" directory: +* Produce the `build/` directory - git clone https://github.com/0x1eef/photon.git - cd photon - npm i - npm run build + git clone https://github.com/0x1eef/myip.wtf + cd myip.wtf + npm i + npm run build -Add the extension to Chrome: - -* Visit `chrome://extensions`. -* Check "Developer mode" (top right hand corner). -* Click "Load unpacked extension". -* Choose the "build/" directory from the file dialog. -* Done. +* Load the extension + * Visit `chrome://extensions`. + * Check `Developer mode` (top right hand corner). + * Click `Load unpacked extension`. + * Choose the `build/` directory from the file dialog. + * Done. ## Sources -* [Source code (GitHub)](https://github.com/0x1eef/photon#readme) -* [Source code (GitLab)](https://gitlab.com/0x1eef/photon#about) +* [GitHub](https://github.com/0x1eef/myip.wtf#readme) +* [GitLab](https://gitlab.com/0x1eef/myip.wtf#about) -## Screenshots - -

- -

- -## License +## License [BSD Zero Clause](https://choosealicense.com/licenses/0bsd/).
See [LICENSE](./LICENSE). - - diff --git a/package-lock.json b/package-lock.json index 40371b4..3a6e308 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "photon", - "version": "0.2.1", + "name": "myip.wtf", + "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "photon", - "version": "0.2.1", + "name": "myip.wtf", + "version": "0.3.0", "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/package.json b/package.json index fa506f5..35e6ccc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "photon", - "version": "0.2.1", + "name": "myip.wtf", + "version": "0.3.0", "dependencies": { "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/share/myip.wtf/myip.wtf.png b/share/myip.wtf/myip.wtf.png new file mode 100644 index 0000000..39710dd Binary files /dev/null and b/share/myip.wtf/myip.wtf.png differ diff --git a/share/photon/photon.png b/share/photon/photon.png deleted file mode 100644 index 31fa1f5..0000000 Binary files a/share/photon/photon.png and /dev/null differ diff --git a/src/html/browseraction.html b/src/html/browseraction.html index e9970c9..64d08b4 100644 --- a/src/html/browseraction.html +++ b/src/html/browseraction.html @@ -9,7 +9,7 @@
diff --git a/src/images/icons/icon128.png b/src/images/icons/icon128.png deleted file mode 100644 index ac0f978..0000000 Binary files a/src/images/icons/icon128.png and /dev/null differ diff --git a/src/images/icons/icon16.png b/src/images/icons/icon16.png deleted file mode 100644 index a1425ee..0000000 Binary files a/src/images/icons/icon16.png and /dev/null differ diff --git a/src/images/icons/wtf128x128.png b/src/images/icons/wtf128x128.png new file mode 100644 index 0000000..47850aa Binary files /dev/null and b/src/images/icons/wtf128x128.png differ diff --git a/src/images/icons/wtf16x16.png b/src/images/icons/wtf16x16.png new file mode 100644 index 0000000..006b078 Binary files /dev/null and b/src/images/icons/wtf16x16.png differ diff --git a/src/images/icons/wtf256x256.png b/src/images/icons/wtf256x256.png new file mode 100644 index 0000000..6542f33 Binary files /dev/null and b/src/images/icons/wtf256x256.png differ diff --git a/src/images/icons/wtf48x48.png b/src/images/icons/wtf48x48.png new file mode 100644 index 0000000..34cd8d2 Binary files /dev/null and b/src/images/icons/wtf48x48.png differ diff --git a/src/images/icons/wtf64x64.png b/src/images/icons/wtf64x64.png new file mode 100644 index 0000000..962e953 Binary files /dev/null and b/src/images/icons/wtf64x64.png differ diff --git a/src/js/hooks/useWebService.ts b/src/js/hooks/useWebService.ts index 8a42b57..516ae89 100644 --- a/src/js/hooks/useWebService.ts +++ b/src/js/hooks/useWebService.ts @@ -4,7 +4,7 @@ import { TResponse, Response } from "~/lib/response"; type Maybe = T | null; export function useWebService(): [Maybe, Maybe] { - const endpoint = "https://clean.wtfismyip.com/json"; + const endpoint = "https://clean.myip.wtf/json"; const [response, setResponse] = useState>(null); const [error, setError] = useState>(null); const options: RequestInit = {cache: "no-store"}; diff --git a/src/manifest.json b/src/manifest.json index a6c41f3..81e5ebc 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,15 +1,18 @@ { "manifest_version": 3, - "name": "Photon", + "name": "myip.wtf", "version": "0.3.0", - "description": "Provides information about your public IP address.", + "description": "Relays information about your public IP address from myip.wtf to your browser", "action": { "default_popup": "/html/browseraction.html" }, - "permissions": [], "icons": { - "16": "images/icons/icon16.png", - "128": "images/icons/icon128.png" + "16": "images/icons/wtf16x16.png", + "48": "images/icons/wtf48x48.png", + "64": "images/icons/wtf64x64.png", + "128": "images/icons/wtf128x128.png", + "256": "images/icons/wtf256x256.png" }, + "permissions": [], "default_locale": "en" }