diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/assets/images/myIp-icon-light.svg | 39 | ||||
-rw-r--r-- | src/assets/images/myIp-icon.svg | 1 | ||||
-rw-r--r-- | src/assets/javascripts/services.js | 3 | ||||
-rw-r--r-- | src/config.json | 20 |
4 files changed, 62 insertions, 1 deletions
diff --git a/src/assets/images/myIp-icon-light.svg b/src/assets/images/myIp-icon-light.svg new file mode 100644 index 00000000..bfa5bbd5 --- /dev/null +++ b/src/assets/images/myIp-icon-light.svg @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + height="24" + viewBox="0 -960 960 960" + width="24" + version="1.1" + id="svg4" + sodipodi:docname="myIp-icon-light.svg" + inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"> + <defs + id="defs8" /> + <sodipodi:namedview + id="namedview6" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:showpageshadow="2" + inkscape:pageopacity="0.0" + inkscape:pagecheckerboard="0" + inkscape:deskcolor="#d1d1d1" + showgrid="false" + inkscape:zoom="32.416667" + inkscape:cx="8.2365039" + inkscape:cy="12" + inkscape:window-width="1888" + inkscape:window-height="1060" + inkscape:window-x="32" + inkscape:window-y="0" + inkscape:window-maximized="1" + inkscape:current-layer="svg4" /> + <path + d="M300-720q-25 0-42.5 17.5T240-660q0 25 17.5 42.5T300-600q25 0 42.5-17.5T360-660q0-25-17.5-42.5T300-720Zm0 400q-25 0-42.5 17.5T240-260q0 25 17.5 42.5T300-200q25 0 42.5-17.5T360-260q0-25-17.5-42.5T300-320ZM160-840h640q17 0 28.5 11.5T840-800v280q0 17-11.5 28.5T800-480H160q-17 0-28.5-11.5T120-520v-280q0-17 11.5-28.5T160-840Zm40 80v200h560v-200H200Zm-40 320h640q17 0 28.5 11.5T840-400v280q0 17-11.5 28.5T800-80H160q-17 0-28.5-11.5T120-120v-280q0-17 11.5-28.5T160-440Zm40 80v200h560v-200H200Zm0-400v200-200Zm0 400v200-200Z" + id="path2" + style="fill:#ffffff" /> +</svg> diff --git a/src/assets/images/myIp-icon.svg b/src/assets/images/myIp-icon.svg new file mode 100644 index 00000000..c3864207 --- /dev/null +++ b/src/assets/images/myIp-icon.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M300-720q-25 0-42.5 17.5T240-660q0 25 17.5 42.5T300-600q25 0 42.5-17.5T360-660q0-25-17.5-42.5T300-720Zm0 400q-25 0-42.5 17.5T240-260q0 25 17.5 42.5T300-200q25 0 42.5-17.5T360-260q0-25-17.5-42.5T300-320ZM160-840h640q17 0 28.5 11.5T840-800v280q0 17-11.5 28.5T800-480H160q-17 0-28.5-11.5T120-520v-280q0-17 11.5-28.5T160-840Zm40 80v200h560v-200H200Zm-40 320h640q17 0 28.5 11.5T840-400v280q0 17-11.5 28.5T800-80H160q-17 0-28.5-11.5T120-120v-280q0-17 11.5-28.5T160-440Zm40 80v200h560v-200H200Zm0-400v200-200Zm0 400v200-200Z"/></svg> \ No newline at end of file diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 4613d34f..d0d85acd 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 ee6a62d1..36d8b86f 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": { |