Rehide other elements too

This commit is contained in:
Arne Keller 2019-07-13 12:11:25 +02:00
parent 6b54383dec
commit fc6341cb48

View File

@ -64,12 +64,15 @@ window.ytacListener = (message) => {
} else if (message.command == "invideo") {
console.log("[YTAC] showing in-video suggestions");
document.getElementById("ytacinvideo").remove();
addClickListeners("invideo");
} else if (message.command == "endscreen") {
console.log("[YTAC] showing endscreen");
document.getElementById("ytacendscreen").remove();
addClickListeners("endscreen");
} else if (message.command == "notification") {
console.log("[YTAC] showing notification bell");
document.getElementById("ytacnotification").remove();
addClickListeners("notification");
}
};
browser.runtime.onMessage.addListener(window.ytacListener);