Browse Source

Fixing more errors

pull/52/head
Araragi 1 year ago
parent
commit
aa3d82dec2
  1. 3
      src/gif.ts
  2. 2
      src/png.ts
  3. 2
      src/websites/index.ts

3
src/gif.ts

@ -1,5 +1,6 @@
import { Buffer } from "buffer";
import type { EmbeddedFile, ImageProcessor } from "./main";
import type { EmbeddedFile } from "./main";
import type { ImageProcessor } from "./processor.worker";
import { BufferWriteStream } from "./png";
import { decodeCoom3Payload, uploadFiles } from "./utils";

2
src/png.ts

@ -1,6 +1,6 @@
import { buf } from "crc-32";
import { Buffer } from "buffer";
import type { ImageProcessor } from "./main";
import type { ImageProcessor } from "./processor.worker";
export type PNGChunk = [
string, // name

2
src/websites/index.ts

@ -100,7 +100,7 @@ export const FoolFuuka: QueryProcessor = {
export const KChan: QueryProcessor = {
getFileThumbnail: post => post.querySelector('figure.uploadCell')!,
getPost: (post) => post.querySelector('.innerPost')!,
postsWithFiles: (h) => [...(h || document).querySelectorAll('.postCell:has(figure)')],
postsWithFiles: (h) => [...(h || document).querySelectorAll('.postCell:has(figure)')] as HTMLElement[],
settingsHost: () => document.getElementById("navOptionsSpanThread") as any,
catalogControlHost: () => document.getElementById("divTools") as HTMLDivElement,
getImageLink: async function* (post: HTMLElement) {

Loading…
Cancel
Save