mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 10:52:20 +01:00
added document.documentElement.lang
This commit is contained in:
1 parent
4ba6ef9f9e
commit
7ac7bf9b0d
3 files changed
+3
-3
No files matched your search
@@ -308,7 +308,7 @@ function numberFormat(numberState) {
|
|||||||
)?.searchParams?.get("locale");
|
)?.searchParams?.get("locale");
|
||||||
|
|
||||||
const formatter = Intl.NumberFormat(
|
const formatter = Intl.NumberFormat(
|
||||||
userLocales || document.documentElement.lang,
|
document.documentElement.lang || userLocales,
|
||||||
{
|
{
|
||||||
notation: "compact",
|
notation: "compact",
|
||||||
minimumFractionDigits: 1,
|
minimumFractionDigits: 1,
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ const NEUTRAL_STATE = "NEUTRAL_STATE";
|
|||||||
?.getAttribute("href")
|
?.getAttribute("href")
|
||||||
)?.searchParams?.get("locale");
|
)?.searchParams?.get("locale");
|
||||||
|
|
||||||
const formatter = Intl.NumberFormat(userLocales || navigator.language, {
|
const formatter = Intl.NumberFormat(document.documentElement.lang || userLocales || navigator.language, {
|
||||||
notation: "compact",
|
notation: "compact",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ function numberFormat(numberState) {
|
|||||||
?.find((n) => n?.getAttribute("href")?.includes("?locale="))
|
?.find((n) => n?.getAttribute("href")?.includes("?locale="))
|
||||||
?.getAttribute("href")
|
?.getAttribute("href")
|
||||||
)?.searchParams?.get("locale");
|
)?.searchParams?.get("locale");
|
||||||
const formatter = Intl.NumberFormat(userLocales || navigator.language, {
|
const formatter = Intl.NumberFormat(document.documentElement.lang || userLocales || navigator.language, {
|
||||||
notation: "compact",
|
notation: "compact",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user