mirror of
https://github.com/shirt-dev/netflix-international.git
synced 2025-06-22 00:36:43 +00:00
Separate subtitle language
This commit is contained in:
parent
a793273c04
commit
5216752ee9
5 changed files with 52 additions and 5 deletions
|
@ -110,6 +110,11 @@ function get_preferred_locale() {
|
|||
return globalOptions.preferredLocale;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
function get_preferred_text_locale() {
|
||||
return globalOptions.preferredTextLocale;
|
||||
}
|
||||
|
||||
do_patch(
|
||||
"Hello world",
|
||||
/(.*)/,
|
||||
|
@ -150,7 +155,7 @@ do_patch(
|
|||
do_patch(
|
||||
"Set preferred text locale",
|
||||
/preferredTextLocale:.\.preferredTextLocale/,
|
||||
"preferredTextLocale: get_preferred_locale()"
|
||||
"preferredTextLocale: get_preferred_text_locale()"
|
||||
);
|
||||
|
||||
// run our patched copy of playercore in a non-privileged context on the page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue