Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mutsuntsai/probably-china
https://github.com/mutsuntsai/probably-china
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mutsuntsai/probably-china
- Owner: MuTsunTsai
- License: mit
- Created: 2024-05-16T09:54:31.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-16T09:55:50.000Z (8 months ago)
- Last Synced: 2024-10-28T15:25:22.689Z (2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# probably-china
> A lucky guess that we are probably in China or facing a Chinese user.
This is a simple package for the browser environment that makes a quick guess
to see if the current webpage is running in China, or if the user is from China,
based on the available browser info. It currently uses two strategies:1. Check if the current browser favors simplified Chinese or related languages.
2. Check if the current timezone is one of the Chinese timezones.The use case for this package is not to avoid showing information that are sensitive in China.