This commit is contained in:
skidoodle 2025-03-15 17:48:19 +01:00
parent 0b4d6eea5d
commit 3370dcaee2
No known key found for this signature in database
5 changed files with 358 additions and 328 deletions

View file

@ -1,3 +1,32 @@
# WXT + React
# 🌍 Host Info
This template should help get you started developing with React in WXT.
A browser extension built with [WXT.dev](https://wxt.dev) and React that lets you discover the origin of the website you're visiting. With a single click, you can view detailed information such as the **country of origin**, **IP address**, **ASN (Autonomous System Number)**, and more. You can also quickly search for the website's details on [Censys](https://censys.io) for deeper insights.
---
## ✨ Features
- **Country of Origin**: Instantly see the country where the website is hosted.
- **IP Address**: View the IP address of the server hosting the website.
- **ASN Information**: Get details about the Autonomous System (AS) managing the IP.
- **Censys Integration**: Quickly search for the website on Censys for advanced network insights.
- **Local & Internal Resources**: Detect if the website is a local or internal resource.
- **Beautiful UI**: A clean, modern interface powered by React and Tailwind CSS.
---
## 🧰 Tech Stack
- **[WXT.dev](https://wxt.dev)**: A modern framework for building browser extensions.
- **[React](https://react.dev)**: A JavaScript library for building user interfaces.
- **[Tailwind CSS](https://tailwindcss.com)**: A utility-first CSS framework for styling.
- **[IP Geolocation API](https://ip.albert.lol)**: Used to fetch IP and country details.
- **[Censys](https://censys.io)**: For advanced network and host information.
---
## 📄 License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
---

View file

@ -7,17 +7,17 @@
"@heroicons/react": "^2.2.0",
"@tailwindcss/vite": "^4.0.14",
"@types/psl": "^1.1.3",
"@types/webextension-polyfill": "^0.12.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwindcss": "^4.0.14",
"webextension-polyfill-ts": "^0.26.0",
},
"devDependencies": {
"@types/chrome": "^0.0.280",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"@wxt-dev/module-react": "^1.1.2",
"typescript": "^5.6.3",
"@types/chrome": "^0.0.309",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@wxt-dev/module-react": "^1.1.3",
"typescript": "^5.8.2",
"wxt": "^0.19.29",
},
},
@ -230,7 +230,7 @@
"@types/babel__traverse": ["@types/babel__traverse@7.20.6", "", { "dependencies": { "@babel/types": "^7.20.7" } }, "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg=="],
"@types/chrome": ["@types/chrome@0.0.280", "", { "dependencies": { "@types/filesystem": "*", "@types/har-format": "*" } }, "sha512-AotSmZrL9bcZDDmSI1D9dE7PGbhOur5L0cKxXd7IqbVizQWCY4gcvupPUVsQ4FfDj3V2tt/iOpomT9EY0s+w1g=="],
"@types/chrome": ["@types/chrome@0.0.309", "", { "dependencies": { "@types/filesystem": "*", "@types/har-format": "*" } }, "sha512-ZFADzcp8b+roUrux68U8pti4cmNOLJXWkShk8lfxj9SBcjYqpJt7NypBprSJUJDJVakGZgd2Tt00QePIGh7oPA=="],
"@types/estree": ["@types/estree@1.0.6", "", {}, "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw=="],
@ -992,8 +992,6 @@
"webextension-polyfill": ["webextension-polyfill@0.12.0", "", {}, "sha512-97TBmpoWJEE+3nFBQ4VocyCdLKfw54rFaJ6EVQYLBCXqCIpLSZkwGgASpv4oPt9gdKCJ80RJlcmNzNn008Ag6Q=="],
"webextension-polyfill-ts": ["webextension-polyfill-ts@0.26.0", "", { "dependencies": { "webextension-polyfill": "^0.8.0" } }, "sha512-XEFL+aYVEsm/d4RajVwP75g56c/w2aSHnPwgtUv8/nCzbLNSzRQIix6aj1xqFkA5yr7OIDkk3OD/QTnPp8ThYA=="],
"webpack-virtual-modules": ["webpack-virtual-modules@0.6.2", "", {}, "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ=="],
"when": ["when@3.7.7", "", {}, "sha512-9lFZp/KHoqH6bPKjbWqa+3Dg/K/r2v0X/3/G2x4DBGchVS2QX2VXL3cZV994WQVnTM1/PD71Az25nAzryEUugw=="],
@ -1166,14 +1164,14 @@
"web-ext-run/fs-extra": ["fs-extra@11.2.0", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" } }, "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw=="],
"webextension-polyfill-ts/webextension-polyfill": ["webextension-polyfill@0.8.0", "", {}, "sha512-a19+DzlT6Kp9/UI+mF9XQopeZ+n2ussjhxHJ4/pmIGge9ijCDz7Gn93mNnjpZAk95T4Tae8iHZ6sSf869txqiQ=="],
"widest-line/string-width": ["string-width@5.1.2", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="],
"wrap-ansi/ansi-styles": ["ansi-styles@6.2.1", "", {}, "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug=="],
"write-file-atomic/signal-exit": ["signal-exit@3.0.7", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="],
"wxt/@types/chrome": ["@types/chrome@0.0.280", "", { "dependencies": { "@types/filesystem": "*", "@types/har-format": "*" } }, "sha512-AotSmZrL9bcZDDmSI1D9dE7PGbhOur5L0cKxXd7IqbVizQWCY4gcvupPUVsQ4FfDj3V2tt/iOpomT9EY0s+w1g=="],
"yargs/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="],
"@aklinker1/rollup-plugin-visualizer/open/define-lazy-prop": ["define-lazy-prop@2.0.0", "", {}, "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og=="],

View file

@ -1,6 +1,6 @@
{
"name": "wxt-react-starter",
"description": "manifest.json description",
"name": "hostinfo",
"description": "Receive information of a domain directly in the browser when browsing a website",
"private": true,
"version": "0.0.0",
"type": "module",
@ -18,17 +18,17 @@
"@heroicons/react": "^2.2.0",
"@tailwindcss/vite": "^4.0.14",
"@types/psl": "^1.1.3",
"@types/webextension-polyfill": "^0.12.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwindcss": "^4.0.14",
"webextension-polyfill-ts": "^0.26.0"
"tailwindcss": "^4.0.14"
},
"devDependencies": {
"@types/chrome": "^0.0.280",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"@wxt-dev/module-react": "^1.1.2",
"typescript": "^5.6.3",
"@types/chrome": "^0.0.309",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@wxt-dev/module-react": "^1.1.3",
"typescript": "^5.8.2",
"wxt": "^0.19.29"
},
"trustedDependencies": [

View file

@ -1,308 +1,308 @@
export const codes: Record<string, string> = {
ad: "Andorra",
ae: "United Arab Emirates",
af: "Afghanistan",
ag: "Antigua and Barbuda",
ai: "Anguilla",
al: "Albania",
am: "Armenia",
ao: "Angola",
aq: "Antarctica",
ar: "Argentina",
as: "American Samoa",
at: "Austria",
au: "Australia",
aw: "Aruba",
ax: "Åland Islands",
az: "Azerbaijan",
ba: "Bosnia and Herzegovina",
bb: "Barbados",
bd: "Bangladesh",
be: "Belgium",
bf: "Burkina Faso",
bg: "Bulgaria",
bh: "Bahrain",
bi: "Burundi",
bj: "Benin",
bl: "Saint Barthélemy",
bm: "Bermuda",
bn: "Brunei",
bo: "Bolivia",
bq: "Caribbean Netherlands",
br: "Brazil",
bs: "Bahamas",
bt: "Bhutan",
bv: "Bouvet Island",
bw: "Botswana",
by: "Belarus",
bz: "Belize",
ca: "Canada",
cc: "Cocos (Keeling) Islands",
cd: "DR Congo",
cf: "Central African Republic",
cg: "Republic of the Congo",
ch: "Switzerland",
ci: "Côte d'Ivoire (Ivory Coast)",
ck: "Cook Islands",
cl: "Chile",
cm: "Cameroon",
cn: "China",
co: "Colombia",
cr: "Costa Rica",
cu: "Cuba",
cv: "Cape Verde",
cw: "Curaçao",
cx: "Christmas Island",
cy: "Cyprus",
cz: "Czechia",
de: "Germany",
dj: "Djibouti",
dk: "Denmark",
dm: "Dominica",
do: "Dominican Republic",
dz: "Algeria",
ec: "Ecuador",
ee: "Estonia",
eg: "Egypt",
eh: "Western Sahara",
er: "Eritrea",
es: "Spain",
et: "Ethiopia",
eu: "European Union",
fi: "Finland",
fj: "Fiji",
fk: "Falkland Islands",
fm: "Micronesia",
fo: "Faroe Islands",
fr: "France",
ga: "Gabon",
gb: "United Kingdom",
"g-eng": "England",
"g-nir": "Northern Ireland",
"g-sct": "Scotland",
"g-wls": "Wales",
gd: "Grenada",
ge: "Georgia",
gf: "French Guiana",
gg: "Guernsey",
gh: "Ghana",
gi: "Gibraltar",
gl: "Greenland",
gm: "Gambia",
gn: "Guinea",
gp: "Guadeloupe",
gq: "Equatorial Guinea",
gr: "Greece",
gs: "South Georgia",
gt: "Guatemala",
gu: "Guam",
gw: "Guinea-Bissau",
gy: "Guyana",
hk: "Hong Kong",
hm: "Heard Island and McDonald Islands",
hn: "Honduras",
hr: "Croatia",
ht: "Haiti",
hu: "Hungary",
id: "Indonesia",
ie: "Ireland",
il: "Israel",
im: "Isle of Man",
in: "India",
io: "British Indian Ocean Territory",
iq: "Iraq",
ir: "Iran",
is: "Iceland",
it: "Italy",
je: "Jersey",
jm: "Jamaica",
jo: "Jordan",
jp: "Japan",
ke: "Kenya",
kg: "Kyrgyzstan",
kh: "Cambodia",
ki: "Kiribati",
km: "Comoros",
kn: "Saint Kitts and Nevis",
kp: "North Korea",
kr: "South Korea",
kw: "Kuwait",
ky: "Cayman Islands",
kz: "Kazakhstan",
la: "Laos",
lb: "Lebanon",
lc: "Saint Lucia",
li: "Liechtenstein",
lk: "Sri Lanka",
lr: "Liberia",
ls: "Lesotho",
lt: "Lithuania",
lu: "Luxembourg",
lv: "Latvia",
ly: "Libya",
ma: "Morocco",
mc: "Monaco",
md: "Moldova",
me: "Montenegro",
mf: "Saint Martin",
mg: "Madagascar",
mh: "Marshall Islands",
mk: "North Macedonia",
ml: "Mali",
mm: "Myanmar",
mn: "Mongolia",
mo: "Macau",
mp: "Northern Mariana Islands",
mq: "Martinique",
mr: "Mauritania",
ms: "Montserrat",
mt: "Malta",
mu: "Mauritius",
mv: "Maldives",
mw: "Malawi",
mx: "Mexico",
my: "Malaysia",
mz: "Mozambique",
na: "Namibia",
nc: "New Caledonia",
ne: "Niger",
nf: "Norfolk Island",
ng: "Nigeria",
ni: "Nicaragua",
nl: "Netherlands",
no: "Norway",
np: "Nepal",
nr: "Nauru",
nu: "Niue",
nz: "New Zealand",
om: "Oman",
pa: "Panama",
pe: "Peru",
pf: "French Polynesia",
pg: "Papua New Guinea",
ph: "Philippines",
pk: "Pakistan",
pl: "Poland",
pm: "Saint Pierre and Miquelon",
pn: "Pitcairn Islands",
pr: "Puerto Rico",
ps: "Palestine",
pt: "Portugal",
pw: "Palau",
py: "Paraguay",
qa: "Qatar",
re: "Réunion",
ro: "Romania",
rs: "Serbia",
ru: "Russia",
rw: "Rwanda",
sa: "Saudi Arabia",
sb: "Solomon Islands",
sc: "Seychelles",
sd: "Sudan",
se: "Sweden",
sg: "Singapore",
sh: "Saint Helena, Ascension and Tristan da Cunha",
si: "Slovenia",
sj: "Svalbard and Jan Mayen",
sk: "Slovakia",
sl: "Sierra Leone",
sm: "San Marino",
sn: "Senegal",
so: "Somalia",
sr: "Suriname",
ss: "South Sudan",
st: "São Tomé and Príncipe",
sv: "El Salvador",
sx: "Sint Maarten",
sy: "Syria",
sz: "Eswatini (Swaziland)",
tc: "Turks and Caicos Islands",
td: "Chad",
tf: "French Southern and Antarctic Lands",
tg: "Togo",
th: "Thailand",
tj: "Tajikistan",
tk: "Tokelau",
tl: "Timor-Leste",
tm: "Turkmenistan",
tn: "Tunisia",
to: "Tonga",
tr: "Turkey",
tt: "Trinidad and Tobago",
tv: "Tuvalu",
tw: "Taiwan",
tz: "Tanzania",
ua: "Ukraine",
ug: "Uganda",
um: "United States Minor Outlying Islands",
un: "United Nations",
us: "United States",
"u-ak": "Alaska",
"u-al": "Alabama",
"u-ar": "Arkansas",
"u-az": "Arizona",
"u-ca": "California",
"u-co": "Colorado",
"u-ct": "Connecticut",
"u-de": "Delaware",
"u-fl": "Florida",
"u-ga": "Georgia",
"u-hi": "Hawaii",
"u-ia": "Iowa",
"u-id": "Idaho",
"u-il": "Illinois",
"u-in": "Indiana",
"u-ks": "Kansas",
"u-ky": "Kentucky",
"u-la": "Louisiana",
"u-ma": "Massachusetts",
"u-md": "Maryland",
"u-me": "Maine",
"u-mi": "Michigan",
"u-mn": "Minnesota",
"u-mo": "Missouri",
"u-ms": "Mississippi",
"u-mt": "Montana",
"u-nc": "North Carolina",
"u-nd": "North Dakota",
"u-ne": "Nebraska",
"u-nh": "New Hampshire",
"u-nj": "New Jersey",
"u-nm": "New Mexico",
"u-nv": "Nevada",
"u-ny": "New York",
"u-oh": "Ohio",
"u-ok": "Oklahoma",
"u-or": "Oregon",
"u-pa": "Pennsylvania",
"u-ri": "Rhode Island",
"u-sc": "South Carolina",
"u-sd": "South Dakota",
"u-tn": "Tennessee",
"u-tx": "Texas",
"u-ut": "Utah",
"u-va": "Virginia",
"u-vt": "Vermont",
"u-wa": "Washington",
"u-wi": "Wisconsin",
"u-wv": "West Virginia",
"u-wy": "Wyoming",
uy: "Uruguay",
uz: "Uzbekistan",
va: "Vatican City (Holy See)",
vc: "Saint Vincent and the Grenadines",
ve: "Venezuela",
vg: "British Virgin Islands",
vi: "United States Virgin Islands",
vn: "Vietnam",
vu: "Vanuatu",
wf: "Wallis and Futuna",
ws: "Samoa",
xk: "Kosovo",
ye: "Yemen",
yt: "Mayotte",
za: "South Africa",
zm: "Zambia",
zw: "Zimbabwe"
ad: 'Andorra',
ae: 'United Arab Emirates',
af: 'Afghanistan',
ag: 'Antigua and Barbuda',
ai: 'Anguilla',
al: 'Albania',
am: 'Armenia',
ao: 'Angola',
aq: 'Antarctica',
ar: 'Argentina',
as: 'American Samoa',
at: 'Austria',
au: 'Australia',
aw: 'Aruba',
ax: 'Åland Islands',
az: 'Azerbaijan',
ba: 'Bosnia and Herzegovina',
bb: 'Barbados',
bd: 'Bangladesh',
be: 'Belgium',
bf: 'Burkina Faso',
bg: 'Bulgaria',
bh: 'Bahrain',
bi: 'Burundi',
bj: 'Benin',
bl: 'Saint Barthélemy',
bm: 'Bermuda',
bn: 'Brunei',
bo: 'Bolivia',
bq: 'Caribbean Netherlands',
br: 'Brazil',
bs: 'Bahamas',
bt: 'Bhutan',
bv: 'Bouvet Island',
bw: 'Botswana',
by: 'Belarus',
bz: 'Belize',
ca: 'Canada',
cc: 'Cocos (Keeling) Islands',
cd: 'DR Congo',
cf: 'Central African Republic',
cg: 'Republic of the Congo',
ch: 'Switzerland',
ci: "Côte d'Ivoire (Ivory Coast)",
ck: 'Cook Islands',
cl: 'Chile',
cm: 'Cameroon',
cn: 'China',
co: 'Colombia',
cr: 'Costa Rica',
cu: 'Cuba',
cv: 'Cape Verde',
cw: 'Curaçao',
cx: 'Christmas Island',
cy: 'Cyprus',
cz: 'Czechia',
de: 'Germany',
dj: 'Djibouti',
dk: 'Denmark',
dm: 'Dominica',
do: 'Dominican Republic',
dz: 'Algeria',
ec: 'Ecuador',
ee: 'Estonia',
eg: 'Egypt',
eh: 'Western Sahara',
er: 'Eritrea',
es: 'Spain',
et: 'Ethiopia',
eu: 'European Union',
fi: 'Finland',
fj: 'Fiji',
fk: 'Falkland Islands',
fm: 'Micronesia',
fo: 'Faroe Islands',
fr: 'France',
ga: 'Gabon',
gb: 'United Kingdom',
'gb-eng': 'England',
'gb-nir': 'Northern Ireland',
'gb-sct': 'Scotland',
'gb-wls': 'Wales',
gd: 'Grenada',
ge: 'Georgia',
gf: 'French Guiana',
gg: 'Guernsey',
gh: 'Ghana',
gi: 'Gibraltar',
gl: 'Greenland',
gm: 'Gambia',
gn: 'Guinea',
gp: 'Guadeloupe',
gq: 'Equatorial Guinea',
gr: 'Greece',
gs: 'South Georgia',
gt: 'Guatemala',
gu: 'Guam',
gw: 'Guinea-Bissau',
gy: 'Guyana',
hk: 'Hong Kong',
hm: 'Heard Island and McDonald Islands',
hn: 'Honduras',
hr: 'Croatia',
ht: 'Haiti',
hu: 'Hungary',
id: 'Indonesia',
ie: 'Ireland',
il: 'Israel',
im: 'Isle of Man',
in: 'India',
io: 'British Indian Ocean Territory',
iq: 'Iraq',
ir: 'Iran',
is: 'Iceland',
it: 'Italy',
je: 'Jersey',
jm: 'Jamaica',
jo: 'Jordan',
jp: 'Japan',
ke: 'Kenya',
kg: 'Kyrgyzstan',
kh: 'Cambodia',
ki: 'Kiribati',
km: 'Comoros',
kn: 'Saint Kitts and Nevis',
kp: 'North Korea',
kr: 'South Korea',
kw: 'Kuwait',
ky: 'Cayman Islands',
kz: 'Kazakhstan',
la: 'Laos',
lb: 'Lebanon',
lc: 'Saint Lucia',
li: 'Liechtenstein',
lk: 'Sri Lanka',
lr: 'Liberia',
ls: 'Lesotho',
lt: 'Lithuania',
lu: 'Luxembourg',
lv: 'Latvia',
ly: 'Libya',
ma: 'Morocco',
mc: 'Monaco',
md: 'Moldova',
me: 'Montenegro',
mf: 'Saint Martin',
mg: 'Madagascar',
mh: 'Marshall Islands',
mk: 'North Macedonia',
ml: 'Mali',
mm: 'Myanmar',
mn: 'Mongolia',
mo: 'Macau',
mp: 'Northern Mariana Islands',
mq: 'Martinique',
mr: 'Mauritania',
ms: 'Montserrat',
mt: 'Malta',
mu: 'Mauritius',
mv: 'Maldives',
mw: 'Malawi',
mx: 'Mexico',
my: 'Malaysia',
mz: 'Mozambique',
na: 'Namibia',
nc: 'New Caledonia',
ne: 'Niger',
nf: 'Norfolk Island',
ng: 'Nigeria',
ni: 'Nicaragua',
nl: 'Netherlands',
no: 'Norway',
np: 'Nepal',
nr: 'Nauru',
nu: 'Niue',
nz: 'New Zealand',
om: 'Oman',
pa: 'Panama',
pe: 'Peru',
pf: 'French Polynesia',
pg: 'Papua New Guinea',
ph: 'Philippines',
pk: 'Pakistan',
pl: 'Poland',
pm: 'Saint Pierre and Miquelon',
pn: 'Pitcairn Islands',
pr: 'Puerto Rico',
ps: 'Palestine',
pt: 'Portugal',
pw: 'Palau',
py: 'Paraguay',
qa: 'Qatar',
re: 'Réunion',
ro: 'Romania',
rs: 'Serbia',
ru: 'Russia',
rw: 'Rwanda',
sa: 'Saudi Arabia',
sb: 'Solomon Islands',
sc: 'Seychelles',
sd: 'Sudan',
se: 'Sweden',
sg: 'Singapore',
sh: 'Saint Helena, Ascension and Tristan da Cunha',
si: 'Slovenia',
sj: 'Svalbard and Jan Mayen',
sk: 'Slovakia',
sl: 'Sierra Leone',
sm: 'San Marino',
sn: 'Senegal',
so: 'Somalia',
sr: 'Suriname',
ss: 'South Sudan',
st: 'São Tomé and Príncipe',
sv: 'El Salvador',
sx: 'Sint Maarten',
sy: 'Syria',
sz: 'Eswatini (Swaziland)',
tc: 'Turks and Caicos Islands',
td: 'Chad',
tf: 'French Southern and Antarctic Lands',
tg: 'Togo',
th: 'Thailand',
tj: 'Tajikistan',
tk: 'Tokelau',
tl: 'Timor-Leste',
tm: 'Turkmenistan',
tn: 'Tunisia',
to: 'Tonga',
tr: 'Turkey',
tt: 'Trinidad and Tobago',
tv: 'Tuvalu',
tw: 'Taiwan',
tz: 'Tanzania',
ua: 'Ukraine',
ug: 'Uganda',
um: 'United States Minor Outlying Islands',
un: 'United Nations',
us: 'United States',
'us-ak': 'Alaska',
'us-al': 'Alabama',
'us-ar': 'Arkansas',
'us-az': 'Arizona',
'us-ca': 'California',
'us-co': 'Colorado',
'us-ct': 'Connecticut',
'us-de': 'Delaware',
'us-fl': 'Florida',
'us-ga': 'Georgia',
'us-hi': 'Hawaii',
'us-ia': 'Iowa',
'us-id': 'Idaho',
'us-il': 'Illinois',
'us-in': 'Indiana',
'us-ks': 'Kansas',
'us-ky': 'Kentucky',
'us-la': 'Louisiana',
'us-ma': 'Massachusetts',
'us-md': 'Maryland',
'us-me': 'Maine',
'us-mi': 'Michigan',
'us-mn': 'Minnesota',
'us-mo': 'Missouri',
'us-ms': 'Mississippi',
'us-mt': 'Montana',
'us-nc': 'North Carolina',
'us-nd': 'North Dakota',
'us-ne': 'Nebraska',
'us-nh': 'New Hampshire',
'us-nj': 'New Jersey',
'us-nm': 'New Mexico',
'us-nv': 'Nevada',
'us-ny': 'New York',
'us-oh': 'Ohio',
'us-ok': 'Oklahoma',
'us-or': 'Oregon',
'us-pa': 'Pennsylvania',
'us-ri': 'Rhode Island',
'us-sc': 'South Carolina',
'us-sd': 'South Dakota',
'us-tn': 'Tennessee',
'us-tx': 'Texas',
'us-ut': 'Utah',
'us-va': 'Virginia',
'us-vt': 'Vermont',
'us-wa': 'Washington',
'us-wi': 'Wisconsin',
'us-wv': 'West Virginia',
'us-wy': 'Wyoming',
uy: 'Uruguay',
uz: 'Uzbekistan',
va: 'Vatican City (Holy See)',
vc: 'Saint Vincent and the Grenadines',
ve: 'Venezuela',
vg: 'British Virgin Islands',
vi: 'United States Virgin Islands',
vn: 'Vietnam',
vu: 'Vanuatu',
wf: 'Wallis and Futuna',
ws: 'Samoa',
xk: 'Kosovo',
ye: 'Yemen',
yt: 'Mayotte',
za: 'South Africa',
zm: 'Zambia',
zw: 'Zimbabwe',
}

View file

@ -7,6 +7,9 @@ export default defineConfig({
manifest: {
permissions: ['tabs', 'activeTab', 'webRequest', 'file://*', 'debugger'],
host_permissions: ['https://ip.albert.lol/*', 'https://dns.google/*', 'https://flagcdn.com/*'],
action: {
default_title: 'Host Info',
},
},
vite: () => ({
plugins: [tailwindcss()],