Update Return Youtube Dislike.user.js

This commit is contained in:
evanreichard authored and GitHub committed 2021-12-14 07:56:18 -05:00
1 parent 01df1d741b
commit 15215558ae
1 file changed
+1 -1
@@ -358,7 +358,7 @@ function numberFormat(numberState) {
?.find((n) => n?.getAttribute("href")?.includes("?locale="))
?.getAttribute("href");
const userLocales = localeURL ? new URL(localeURL)?.searchParams?.get("locale") : null;
const userLocales = localeURL ? new URL(localeURL)?.searchParams?.get("locale") : document.body.lang;
const formatter = Intl.NumberFormat(
document.documentElement.lang || userLocales || navigator.language,