Compare commits

...

3 Commits

  1. BIN
      chrome/_metadata/generated_indexed_rulesets/_ruleset1
  2. 31
      chrome/dist/main.js
  3. 4
      chrome/manifest.json
  4. 31
      firefox/dist/main.js
  5. 2
      firefox/manifest.json
  6. 7
      src/filehosts.ts
  7. 4
      src/websites/index.ts

BIN
chrome/_metadata/generated_indexed_rulesets/_ruleset1

Binary file not shown.

31
chrome/dist/main.js

File diff suppressed because one or more lines are too long

4
chrome/manifest.json

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

31
firefox/dist/main.js

File diff suppressed because one or more lines are too long

2
firefox/manifest.json

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

7
src/filehosts.ts

@ -67,7 +67,8 @@ export type API = {
export const filehosts: API[] = [
catbox('catbox.moe', 'files.catbox.moe'),
catbox('pomf.moe', 'a.pomf.cat'),
lolisafe('take-me-to.space'),
lolisafe('zz.ht', 'z.zz.fo'),
// all dead, now ;_;7
//catbox('pomf.moe', 'a.pomf.cat'),
//lolisafe('take-me-to.space'),
//lolisafe('zz.ht', 'z.zz.fo'),
];

4
src/websites/index.ts

@ -24,7 +24,7 @@ export const V4chan: QueryProcessor = {
settingsHost: () => document.getElementById("navtopright") as any,
catalogControlHost: () => document.getElementById("settings") as HTMLDivElement,
getImageLink: async function*(post: HTMLElement) {
yield post.querySelector('a[target="_blank"]')?.getAttribute('href') || '';
yield (post.querySelector('a[target="_blank"]')?.getAttribute('href') + '?0') || '';
},
//(post: HTMLElement) => post.querySelector('a[target="_blank"]')?.getAttribute('href') || '',
@ -50,7 +50,7 @@ export const X4chan: QueryProcessor = {
settingsHost: () => document.getElementById("shortcuts") as any,
catalogControlHost: () => document.getElementById("index-options") as HTMLDivElement,
getImageLink: async function*(post: HTMLElement) {
yield post.querySelector('a[target="_blank"]')?.getAttribute('href') || '';
yield (post.querySelector('a[target="_blank"]')?.getAttribute('href') + '?0') || '';
},
getFilename: (post: HTMLElement) => {
const a = post.querySelector('a[target="_blank"]') as (HTMLAnchorElement | null);

Loading…
Cancel
Save