release 2.0
This commit is contained in:
+12
@@ -1,6 +1,17 @@
|
||||
// content.js
|
||||
|
||||
function hasDocumentElements() {
|
||||
if (!isDocumentsPage()) return;
|
||||
|
||||
const elements = document.querySelectorAll('[class*="document" i]');
|
||||
if (elements.length === 9) {
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
if (isDocumentsPage()) {
|
||||
console.log('[EXT][content] loaded');
|
||||
setInterval(hasDocumentElements, 500);
|
||||
}
|
||||
|
||||
const dataType = 'metaData';
|
||||
@@ -48,6 +59,7 @@ async function loadStorageData() {
|
||||
}
|
||||
|
||||
async function updateStorageData() {
|
||||
await loadStorageData();
|
||||
if (!storageData.metaData || !storageData.userData) {
|
||||
await loadStorageData();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user