From c46c0fb83a38ca73aa30a64a49c7973bcf1d01df Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Tue, 20 Jun 2023 21:00:36 +0300 Subject: [PATCH] Added WTF IS MY IP! https://github.com/libredirect/browser_extension/issues/746 --- src/assets/images/myIp-icon-light.svg | 39 +++++++++++++++++++++++++++ src/assets/images/myIp-icon.svg | 1 + src/assets/javascripts/services.js | 3 ++- src/config.json | 20 ++++++++++++++ 4 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 src/assets/images/myIp-icon-light.svg create mode 100644 src/assets/images/myIp-icon.svg diff --git a/src/assets/images/myIp-icon-light.svg b/src/assets/images/myIp-icon-light.svg new file mode 100644 index 0000000..bfa5bbd --- /dev/null +++ b/src/assets/images/myIp-icon-light.svg @@ -0,0 +1,39 @@ + + + + + + diff --git a/src/assets/images/myIp-icon.svg b/src/assets/images/myIp-icon.svg new file mode 100644 index 0000000..c386420 --- /dev/null +++ b/src/assets/images/myIp-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 4613d34..d0d85ac 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -724,7 +724,8 @@ const defaultInstances = { 'jitsi': ['https://meet.jit.si', 'https://8x8.vc'], 'binternet': ['https://binternet.ahwx.org'], 'pixivFe': ['https://pixivfe.exozy.me'], - 'indestructables': ['https://indestructables.private.coffee'] + 'indestructables': ['https://indestructables.private.coffee'], + 'wtfismyip': ['https://myip.wtf'] } function initDefaults() { diff --git a/src/config.json b/src/config.json index ee6a62d..36d8b86 100644 --- a/src/config.json +++ b/src/config.json @@ -845,6 +845,26 @@ "imageType": "svgMono", "url": "https://meet.libredirect.invalid" }, + "myIp": { + "frontends": { + "wtfismyip": { + "name": "wtfismyip", + "instanceList": true, + "url": "https://gitlab.com/wtfismyip/wtfismyip" + } + }, + "targets": [ + "^https?:\\/{2}myip\\.libredirect\\.invalid\\/" + ], + "name": "My IP", + "options": { + "enabled": false, + "unsupportedUrls": "bypass", + "frontend": "wtfismyip" + }, + "imageType": "svgMono", + "url": "https://myip.libredirect.invalid" + }, "wolframAlpha": { "frontends": { "wolfreeAlpha": {