Country Code

ISO 3166-1 alpha-2

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.greasyfork.org/scripts/465957/1188611/Country%20Code.js

作者
schimon
版本
23.04
建立日期
2023-05-10
更新日期
2023-05-10
授權條款
MIT

Usage:

countryCode["DE"] // "Germany"

Example:

nationCode = "de"
countryCode[nationCode] // undefined

Solution:

nationCode = nationCode.toUpperCase()
countryCode[nationCode] // "Germany"