diff --git a/PEE-chrome.crx b/PEE-chrome.crx index 0bc5038..72c0322 100644 Binary files a/PEE-chrome.crx and b/PEE-chrome.crx differ diff --git a/build-chrome.js b/build-chrome.js index 2fa424f..cf25a43 100644 --- a/build-chrome.js +++ b/build-chrome.js @@ -11,7 +11,7 @@ import path from 'path'; import ChromeExtension from 'crx'; const crx = new ChromeExtension({ - codebase: 'http://localhost:8000/myExtension.crx', + codebase: 'https://git.coom.tech/coomdev/PEE/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/PEE-chrome.crx', privateKey: readFileSync('./key.pem') }); diff --git a/chrome/manifest.json b/chrome/manifest.json index c53a356..00356b8 100644 --- a/chrome/manifest.json +++ b/chrome/manifest.json @@ -3,7 +3,7 @@ "update_url": "https://git.coom.tech/fuckjannies/lolipiss/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/chrome_update.xml", "name": "PngExtraEmbedder", "description": "Discover embedded files on 4chan and archives!", - "version": "0.208", + "version": "0.209", "icons": { "64": "1449696017588.png" }, diff --git a/chrome_update.xml b/chrome_update.xml index fea80b6..8ec254e 100644 --- a/chrome_update.xml +++ b/chrome_update.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 1e7e219..e46bbb9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -543,7 +543,8 @@ const startup = async (is4chanX = true) => { //await Promise.all(posts.map(e => processPost(e as any))); }; document.addEventListener('4chanXInitFinished', () => startup(true)); -document.addEventListener('4chanMainInit', () => startup(false), { once: true }); +// 4chanMainInit is fired even if the native extension is disabled, which we don't want +document.addEventListener('4chanParsingDone', () => startup(false), { once: true }); if (supportedAltDomain(location.host)) { if (location.host == 'arch.b4k.co') { gmo = new MutationObserver(m => {