This commit is contained in:
ManeraKai 2023-09-02 12:19:19 +03:00
parent 1d7ab3f03c
commit e06a0a1a97
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
2 changed files with 6 additions and 1 deletions

View File

@ -138,7 +138,9 @@
}, },
"targets": [ "targets": [
"^https?:\\/{2}(www\\.|mobile\\.)?twitter\\.com\\/", "^https?:\\/{2}(www\\.|mobile\\.)?twitter\\.com\\/",
"^https?:\\/{2}(www\\.|mobile\\.)?x\\.com\\/",
"^https?:\\/{2}(pbs\\.|video\\.)twimg\\.com\\/", "^https?:\\/{2}(pbs\\.|video\\.)twimg\\.com\\/",
"^https?:\\/{2}platform\\.x\\.com/embed\\/",
"^https?:\\/{2}platform\\.twitter\\.com/embed\\/", "^https?:\\/{2}platform\\.twitter\\.com/embed\\/",
"^https?:\\/{2}t\\.co\\/" "^https?:\\/{2}t\\.co\\/"
], ],

View File

@ -83,9 +83,12 @@ async function changeFrontendsSettings(service) {
if (config.services[service].frontends[frontend].desktopApp && options[service].redirectType != "main_frame") { if (config.services[service].frontends[frontend].desktopApp && options[service].redirectType != "main_frame") {
document.getElementById(`${service}-embedFrontend-div`).style.display = '' document.getElementById(`${service}-embedFrontend-div`).style.display = ''
document.getElementById(divs[service].embedFrontend.value).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(`${service}-embedFrontend-div`).style.display = 'none'
document.getElementById(divs[service].embedFrontend.value).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] const frontend_name_element = document.getElementById(`${service}_page`).getElementsByClassName("frontend_name")[0]