wip
This commit is contained in:
parent
62a2773488
commit
2f412f50a6
|
@ -7,6 +7,7 @@ if (document.readyState && document.readyState !== 'loading') {
|
||||||
function kagiSummarizeOnLoad() {
|
function kagiSummarizeOnLoad() {
|
||||||
console.log('configuring kagi observer');
|
console.log('configuring kagi observer');
|
||||||
var observer = new MutationObserver(function(mutations) {
|
var observer = new MutationObserver(function(mutations) {
|
||||||
|
console.log('kagi observer triggered');
|
||||||
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);
|
console.log(mutation.addedNodes);
|
||||||
|
@ -14,7 +15,7 @@ function kagiSummarizeOnLoad() {
|
||||||
return el.classList.contains('kagi-summary');
|
return el.classList.contains('kagi-summary');
|
||||||
});
|
});
|
||||||
if (hasClass) {
|
if (hasClass) {
|
||||||
console.log('kagi observer triggered');
|
console.log('observer found kagi class');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue