wip
This commit is contained in:
parent
0ffb8ba3a0
commit
62a2773488
|
@ -9,6 +9,7 @@ function kagiSummarizeOnLoad() {
|
||||||
var observer = new MutationObserver(function(mutations) {
|
var observer = new MutationObserver(function(mutations) {
|
||||||
mutations.forEach(function(mutation) {
|
mutations.forEach(function(mutation) {
|
||||||
if (mutation.addedNodes && mutation.addedNodes.length > 0) {
|
if (mutation.addedNodes && mutation.addedNodes.length > 0) {
|
||||||
|
console.log(mutation.addedNodes);
|
||||||
var hasClass = [].some.call(mutation.addedNodes, function(el) {
|
var hasClass = [].some.call(mutation.addedNodes, function(el) {
|
||||||
return el.classList.contains('kagi-summary');
|
return el.classList.contains('kagi-summary');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue