diff --git a/src/config.json b/src/config.json index 914b5ab..a20b98b 100644 --- a/src/config.json +++ b/src/config.json @@ -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\\/" ], diff --git a/src/pages/options/index.js b/src/pages/options/index.js index 0f2d7f3..1fba923 100644 --- a/src/pages/options/index.js +++ b/src/pages/options/index.js @@ -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]