Country Code

ISO 3166-1 alpha-2

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/465957/1188611/Country%20Code.js

  1. // ==UserScript==
  2. // @namespace i2p.schimon.countrycode
  3. // @exclude *
  4.  
  5. // ==UserLibrary==
  6. // @name Country Code
  7. // @description ISO 3166-1 alpha-2
  8. // @copyright 2023, Schimon Jehudah (http://schimon.i2p)
  9. // @homepageURL https://gf.qytechs.cn/en/scripts/465957-country-code
  10. // @version 23.04
  11. // @license MIT
  12.  
  13. // ==/UserScript==
  14.  
  15. // ==/UserLibrary==
  16.  
  17. // ==OpenUserJS==
  18. // @author sjehuda
  19. // ==/OpenUserJS==
  20.  
  21. const countryCode = {
  22. "AD": "Andorra",
  23. "AE": "United Arab Emirates",
  24. "AF": "Afghanistan",
  25. "AG": "Antigua and Barbuda",
  26. "AI": "Anguilla",
  27. "AL": "Albania",
  28. "AM": "Armenia",
  29. "AN": "Netherlands Antilles",
  30. "AO": "Angola",
  31. "AQ": "Antarctica",
  32. "AR": "Argentina",
  33. "AS": "American Samoa",
  34. "AT": "Austria",
  35. "AU": "Australia",
  36. "AW": "Aruba",
  37. "AX": "Åland Islands",
  38. "AZ": "Azerbaijan",
  39. "BA": "Bosnia and Herzegovina",
  40. "BB": "Barbados",
  41. "BD": "Bangladesh",
  42. "BE": "Belgium",
  43. "BF": "Burkina Faso",
  44. "BG": "Bulgaria",
  45. "BH": "Bahrain",
  46. "BI": "Burundi",
  47. "BJ": "Benin",
  48. "BL": "Saint Barthélemy",
  49. "BM": "Bermuda",
  50. "BN": "Brunei Darussalam",
  51. "BO": "Bolivia",
  52. "BQ": "Bonaire, Sint Eustatius and Saba",
  53. "BR": "Brazil",
  54. "BS": "Bahamas",
  55. "BT": "Bhutan",
  56. "BV": "Bouvet Island",
  57. "BW": "Botswana",
  58. "BY": "Belarus",
  59. "BZ": "Belize",
  60. "CA": "Canada",
  61. "CC": "Cocos (Keeling) Islands",
  62. "CD": "Congo, Democratic Republic",
  63. "CF": "Central African Republic",
  64. "CG": "Congo",
  65. "CH": "Switzerland",
  66. "CI": "Côte d'Ivoire",
  67. "CK": "Cook Islands",
  68. "CL": "Chile",
  69. "CM": "Cameroon",
  70. "CN": "China",
  71. "CO": "Colombia",
  72. "CR": "Costa Rica",
  73. "CU": "Cuba",
  74. "CV": "Cape Verde",
  75. "CW": "Curaçao",
  76. "CX": "Christmas Island",
  77. "CY": "Cyprus",
  78. "CZ": "Czech Republic",
  79. "DE": "Germany",
  80. "DJ": "Djibouti",
  81. "DK": "Denmark",
  82. "DM": "Dominica",
  83. "DO": "Dominican Republic",
  84. "DZ": "Algeria",
  85. "EC": "Ecuador",
  86. "EE": "Estonia",
  87. "EG": "Egypt",
  88. "EH": "Western Sahara",
  89. "ER": "Eritrea",
  90. "ES": "Spain",
  91. "ET": "Ethiopia",
  92. "FI": "Finland",
  93. "FJ": "Fiji",
  94. "FK": "Falkland Islands (Malvinas)",
  95. "FM": "Micronesia, Federated States of",
  96. "FO": "Faroe Islands",
  97. "FR": "France",
  98. "GA": "Gabon",
  99. "GB": "United Kingdom",
  100. "GD": "Grenada",
  101. "GE": "Georgia",
  102. "GF": "French Guiana",
  103. "GG": "Guernsey",
  104. "GH": "Ghana",
  105. "GI": "Gibraltar",
  106. "GL": "Greenland",
  107. "GM": "Gambia",
  108. "GN": "Guinea",
  109. "GP": "Guadeloupe",
  110. "GQ": "Equatorial Guinea",
  111. "GR": "Greece",
  112. "GS": "South Georgia and the South Sandwich Islands",
  113. "GT": "Guatemala",
  114. "GU": "Guam",
  115. "GW": "Guinea-Bissau",
  116. "GY": "Guyana",
  117. "HK": "Hong Kong",
  118. "HM": "Heard Island and McDonald Islands",
  119. "HN": "Honduras",
  120. "HR": "Croatia",
  121. "HT": "Haiti",
  122. "HU": "Hungary",
  123. "ID": "Indonesia",
  124. "IE": "Ireland",
  125. "IL": "Israel",
  126. "IM": "Isle of Man",
  127. "IN": "India",
  128. "IO": "British Indian Ocean Territory",
  129. "IQ": "Iraq",
  130. "IR": "Iran, Islamic Republic of",
  131. "IS": "Iceland",
  132. "IT": "Italy",
  133. "JE": "Jersey",
  134. "JM": "Jamaica",
  135. "JO": "Jordan",
  136. "JP": "Japan",
  137. "KE": "Kenya",
  138. "KG": "Kyrgyzstan",
  139. "KH": "Cambodia",
  140. "KI": "Kiribati",
  141. "KM": "Comoros",
  142. "KN": "Saint Kitts and Nevis",
  143. "KP": "Korea (Democratic People's Republic of)",
  144. "KR": "Korea, Republic of",
  145. "KW": "Kuwait",
  146. "KY": "Cayman Islands",
  147. "KZ": "Kazakhstan",
  148. "LA": "Lao People's Democratic Republic",
  149. "LB": "Lebanon",
  150. "LC": "Saint Lucia",
  151. "LI": "Liechtenstein",
  152. "LK": "Sri Lanka",
  153. "LR": "Liberia",
  154. "LS": "Lesotho",
  155. "LT": "Lithuania",
  156. "LU": "Luxembourg",
  157. "LV": "Latvia",
  158. "LY": "Libyan Arab Jamahiriya",
  159. "MA": "Morocco",
  160. "MC": "Monaco",
  161. "MD": "Moldova, Republic of",
  162. "ME": "Montenegro",
  163. "MF": "Saint Martin",
  164. "MG": "Madagascar",
  165. "MH": "Marshall Islands",
  166. "MK": "North Macedonia",
  167. "ML": "Mali",
  168. "MM": "Myanmar",
  169. "MN": "Mongolia",
  170. "MO": "Macao",
  171. "MP": "Northern Mariana Islands",
  172. "MQ": "Martinique",
  173. "MR": "Mauritania",
  174. "MS": "Montserrat",
  175. "MT": "Malta",
  176. "MU": "Mauritius",
  177. "MV": "Maldives",
  178. "MW": "Malawi",
  179. "MX": "Mexico",
  180. "MY": "Malaysia",
  181. "MZ": "Mozambique",
  182. "NA": "Namibia",
  183. "NC": "New Caledonia",
  184. "NE": "Niger",
  185. "NF": "Norfolk Island",
  186. "NG": "Nigeria",
  187. "NI": "Nicaragua",
  188. "NL": "Netherlands",
  189. "NO": "Norway",
  190. "NP": "Nepal",
  191. "NR": "Nauru",
  192. "NU": "Niue",
  193. "NZ": "New Zealand",
  194. "OM": "Oman",
  195. "PA": "Panama",
  196. "PE": "Peru",
  197. "PF": "French Polynesia",
  198. "PG": "Papua New Guinea",
  199. "PH": "Philippines",
  200. "PK": "Pakistan",
  201. "PL": "Poland",
  202. "PM": "Saint Pierre and Miquelon",
  203. "PN": "Pitcairn",
  204. "PR": "Puerto Rico",
  205. "PS": "Palestinian Territory, Occupied",
  206. "PT": "Portugal",
  207. "PW": "Palau",
  208. "PY": "Paraguay",
  209. "QA": "Qatar",
  210. "RE": "Réunion",
  211. "RO": "Romania",
  212. "RS": "Serbia",
  213. "RU": "Russian Federation",
  214. "RW": "Rwanda",
  215. "SA": "Saudi Arabia",
  216. "SB": "Solomon Islands",
  217. "SC": "Seychelles",
  218. "SD": "Sudan",
  219. "SE": "Sweden",
  220. "SG": "Singapore",
  221. "SH": "Saint Helena, Ascension and Tristan da Cunha",
  222. "SI": "Slovenia",
  223. "SJ": "Svalbard and Jan Mayen",
  224. "SK": "Slovakia",
  225. "SL": "Sierra Leone",
  226. "SM": "San Marino",
  227. "SN": "Senegal",
  228. "SO": "Somalia",
  229. "SR": "Suriname",
  230. "SS": "South Sudan",
  231. "ST": "Sao Tome and Principe",
  232. "SV": "El Salvador",
  233. "SX": "Sint Maarten, Dutch part",
  234. "SY": "Syrian Arab Republic",
  235. "SZ": "Swaziland",
  236. "TC": "Turks and Caicos Islands",
  237. "TD": "Chad",
  238. "TF": "French Southern Territories",
  239. "TG": "Togo",
  240. "TH": "Thailand",
  241. "TJ": "Tajikistan",
  242. "TK": "Tokelau",
  243. "TL": "Timor-Leste",
  244. "TM": "Turkmenistan",
  245. "TN": "Tunisia",
  246. "TO": "Tonga",
  247. "TR": "Turkey",
  248. "TT": "Trinidad and Tobago",
  249. "TV": "Tuvalu",
  250. "TW": "Taiwan, Province of China",
  251. "TZ": "Tanzania, United Republic of",
  252. "UA": "Ukraine",
  253. "UG": "Uganda",
  254. "UM": "United States Minor Outlying Islands",
  255. "US": "United States of America",
  256. "UY": "Uruguay",
  257. "UZ": "Uzbekistan",
  258. "VA": "Holy See (Vatican City State)",
  259. "VC": "Saint Vincent and the Grenadines",
  260. "VE": "Venezuela, Bolivarian Republic of",
  261. "VG": "Virgin Islands, British",
  262. "VI": "Virgin Islands, U.S.",
  263. "VN": "Vietnam",
  264. "VU": "Vanuatu",
  265. "WF": "Wallis and Futuna",
  266. "WS": "Samoa",
  267. "YE": "Yemen",
  268. "YT": "Mayotte",
  269. "ZA": "South Africa",
  270. "ZM": "Zambia",
  271. "ZW": "Zimbabwe",
  272. }; // ISO3166-1.alpha2.json

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址