skip for my instance, and process post pages too
This commit is contained in:
parent
1732d72cf1
commit
d732ec6e32
1 changed files with 13 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
})();
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue