Estoy creando una extensión de Chrome que te redirige desde un corto de YouTube al video real, y cuando te redirigen no puedes volver a la página anterior. ¿Alguien puede ayudar? Aquí está mi código background.js :
let enabled = true chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) { if (tab.url.startsWith("https://www.youtube.com/shorts") && enabled) { chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { var activeTab = tabs[0] chrome.tabs.update(activeTab.id, { url: activeTab.url.replace("shorts/", "watch?v=") }); }) } });