Closed pboutin closed 1 year ago
Seems like the trade site's JS is always updating the document.title
, so the extension cannot reliably change it 😞
@pboutin This should be possible, or are you limited in what you can do because it's an extension? They only update when you navigate, search, etc... so the code below should solve your problem.
let ourDocumentTitle = "Dying Sun"
new MutationObserver(function() {
if(document.title !== ourDocumentTitle) {
document.title = ourDocumentTitle
}
}).observe(document.querySelector("title"), { childList: true })
This should work great in all evergreen browsers. https://caniuse.com/?search=MutationObserver
As for a "live" icon, we'd have to observe the content of Activate Live Search
button, since i can't find any other visible change atm.
@bellstrand that might work, will have to give it a try, thanks for the idea!
Idea from Discord