禁止访问网页

禁止访问网页列表,做一个自律的人,成为更好的自己。

< 腳本禁止访问网页的回應

提問/評論

§
發表於:2024-02-10

const G_LANGUAGE_INDEX = ('zh' === navigator.language || 'zh' === navigator.userLanguage) ? 0 : 1;

Basil Guo作者
§
發表於:2024-07-01
編輯:2024-07-01

const G_LANGUAGE_INDEX = ('zh' === navigator.language || 'zh' === navigator.userLanguage) ? 0 : 1;

Thanks~ Though it is right after correcting, I don't know why because my Chrome shows 'zh-CN'. So I would compare it with 'en'.
谢了老哥。虽然这样改了是正确了,但给我整不会了,我浏览器显示我的语言是zh-CN。我还是用en来判断吧。

發表回覆

登入以回復