Browse Source

Fix update URL for chrome, and revert vanilla loading init event

pull/46/head
coomdev 2 years ago
parent
commit
a1dd956fb7
  1. BIN
      PEE-chrome.crx
  2. 2
      build-chrome.js
  3. 2
      chrome/manifest.json
  4. 2
      chrome_update.xml
  5. 3
      src/main.ts

BIN
PEE-chrome.crx

Binary file not shown.

2
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')
});

2
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"
},

2
chrome_update.xml

@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='ilffidhdekahjldemialkgahicnajchb'>
<updatecheck codebase='http://localhost:8000/myExtension.crx' version='0.208' prodversionmin='64.0.3242' />
<updatecheck codebase='https://git.coom.tech/coomdev/PEE/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/PEE-chrome.crx' version='0.209' prodversionmin='64.0.3242' />
</app>
</gupdate>

3
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 => {

Loading…
Cancel
Save