skip for my instance, and process post pages too

This commit is contained in:
Vivianne 2022-05-12 19:03:37 -07:00
parent 1732d72cf1
commit d732ec6e32

View file

@ -15,6 +15,10 @@
const MY_INSTANCE = 'https://pix.solarpunk.moe';
if (document.URL.startsWith(`${MY_INSTANCE}/`)) {
return;
}
var MutationObserver = window.MutationObserver;
var myObserver = new MutationObserver (mutationHandler);
var obsConfig = {
@ -45,6 +49,14 @@
return;
}
if (node.classList.contains('container-fluid')) {
for (let n of node.querySelectorAll('.timeline-status-component')) {
processNode(n);
}
return;
}
if (!node.classList.contains('timeline-status-component')) {
return;
}
@ -86,4 +98,4 @@
dotMenu.before(externalButton);
}
})();
})();