1
Fork 0
mirror of https://github.com/Steffo99/tidebringer-firefox.git synced 2025-01-05 05:29:46 +00:00

Only display the extension line if buttons are placed

This commit is contained in:
Steffo 2022-07-22 06:21:14 +02:00
parent 1f67db9258
commit 4bc0537e80
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -41,10 +41,10 @@ async function addAllSubscribedToCollection() {
}
function tidebringer() {
console.log("%c Tidebringer %chttps://github.com/Steffo99/tidebringer-firefox", "background-color: black; color: #a0f3f6;");
const whereTheContainerShouldBePlaced = document.querySelector(".collectionAddItemsSection");
if(!whereTheContainerShouldBePlaced) return
console.log("%c Tidebringer %chttps://github.com/Steffo99/tidebringer-firefox", "background-color: black; color: #a0f3f6;");
const container = document.createElement("div")
container.id = "tidebringer-container"