Browse Source

Fix endpoint URL

pull/46/head
coomdev 2 years ago
parent
commit
0e8c9356e3
  1. 2
      chrome/manifest.json
  2. 2
      firefox/manifest.json
  3. 2
      firefox_update.json
  4. 2
      main.meta.js
  5. 6
      main.user.js
  6. 2
      src/utils.ts

2
chrome/manifest.json

@ -2,7 +2,7 @@
"manifest_version": 3, "manifest_version": 3,
"name": "PngExtraEmbedder", "name": "PngExtraEmbedder",
"description": "Discover embedded files on 4chan and archives!", "description": "Discover embedded files on 4chan and archives!",
"version": "0.230", "version": "0.231",
"icons": { "icons": {
"64": "1449696017588.png" "64": "1449696017588.png"
}, },

2
firefox/manifest.json

@ -7,7 +7,7 @@
}, },
"name": "PngExtraEmbedder", "name": "PngExtraEmbedder",
"description": "Discover embedded files on 4chan and archives!", "description": "Discover embedded files on 4chan and archives!",
"version": "0.230", "version": "0.231",
"icons": { "icons": {
"64": "1449696017588.png" "64": "1449696017588.png"
}, },

2
firefox_update.json

@ -1 +1 @@
{"addons":{"{34ac4994-07f2-44d2-8599-682516a6c6a6}":{"updates":[{"version":"0.230","update_link":"https://github.com/coomdev/pngextraembedder/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pee-firefox.zip"}]}}} {"addons":{"{34ac4994-07f2-44d2-8599-682516a6c6a6}":{"updates":[{"version":"0.231","update_link":"https://github.com/coomdev/pngextraembedder/raw/branch/%E4%B8%AD%E5%87%BA%E3%81%97/pee-firefox.zip"}]}}}

2
main.meta.js

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name PNGExtraEmbed // @name PNGExtraEmbed
// @namespace https://coom.tech/ // @namespace https://coom.tech/
// @version 0.230 // @version 0.231
// @description uhh // @description uhh
// @author You // @author You
// @match https://boards.4channel.org/* // @match https://boards.4channel.org/*

6
main.user.js

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name PNGExtraEmbed // @name PNGExtraEmbed
// @namespace https://coom.tech/ // @namespace https://coom.tech/
// @version 0.230 // @version 0.231
// @description uhh // @description uhh
// @author You // @author You
// @match https://boards.4channel.org/* // @match https://boards.4channel.org/*
@ -89,7 +89,7 @@ const _DOMParser = DOMParser;
var define_BUILD_VERSION_default; var define_BUILD_VERSION_default;
var init_define_BUILD_VERSION = __esm({ var init_define_BUILD_VERSION = __esm({
"<define:BUILD_VERSION>"() { "<define:BUILD_VERSION>"() {
define_BUILD_VERSION_default = [0, 230]; define_BUILD_VERSION_default = [0, 231];
} }
}); });
@ -15769,7 +15769,7 @@ const _DOMParser = DOMParser;
return new Blob([ret]); return new Blob([ret]);
}; };
var getThreadInfo = async (board, op) => { var getThreadInfo = async (board, op) => {
const res = await (await fetch(`http://127.0.0.1:1488/data/${board}/${op}`)).json(); const res = await (await fetch(`http://shoujo.coom.tech/data/${board}/${op}`)).json();
return Object.fromEntries(res.map((e) => [e.id, e])); return Object.fromEntries(res.map((e) => [e.id, e]));
}; };
var threadDataCache = writable(); var threadDataCache = writable();

2
src/utils.ts

@ -123,7 +123,7 @@ export const buildPeeFile = async (f: File) => {
}; };
const getThreadInfo = async (board: string, op: number) => { const getThreadInfo = async (board: string, op: number) => {
const res = await ((await fetch(`http://127.0.0.1:1488/data/${board}/${op}`)).json() as Promise<{ const res = await ((await fetch(`http://shoujo.coom.tech/data/${board}/${op}`)).json() as Promise<{
id: number; id: number;
cnt: number; cnt: number;
data: { data: {

Loading…
Cancel
Save