Added x.com support https://github.com/libredirect/browser_extension/issues/799. fixed bug in settings
This commit is contained in:
parent
1d7ab3f03c
commit
e06a0a1a97
|
@ -138,7 +138,9 @@
|
|||
},
|
||||
"targets": [
|
||||
"^https?:\\/{2}(www\\.|mobile\\.)?twitter\\.com\\/",
|
||||
"^https?:\\/{2}(www\\.|mobile\\.)?x\\.com\\/",
|
||||
"^https?:\\/{2}(pbs\\.|video\\.)twimg\\.com\\/",
|
||||
"^https?:\\/{2}platform\\.x\\.com/embed\\/",
|
||||
"^https?:\\/{2}platform\\.twitter\\.com/embed\\/",
|
||||
"^https?:\\/{2}t\\.co\\/"
|
||||
],
|
||||
|
|
|
@ -83,9 +83,12 @@ async function changeFrontendsSettings(service) {
|
|||
if (config.services[service].frontends[frontend].desktopApp && options[service].redirectType != "main_frame") {
|
||||
document.getElementById(`${service}-embedFrontend-div`).style.display = ''
|
||||
document.getElementById(divs[service].embedFrontend.value).style.display = ''
|
||||
} else {
|
||||
}
|
||||
else if (config.services[service].frontends[frontend].desktopApp && options[service].redirectType == "main_frame") {
|
||||
document.getElementById(`${service}-embedFrontend-div`).style.display = 'none'
|
||||
document.getElementById(divs[service].embedFrontend.value).style.display = 'none'
|
||||
} else {
|
||||
document.getElementById(`${service}-embedFrontend-div`).style.display = 'none'
|
||||
}
|
||||
}
|
||||
const frontend_name_element = document.getElementById(`${service}_page`).getElementsByClassName("frontend_name")[0]
|
||||
|
|
Loading…
Reference in New Issue