|
|
@ -1,7 +1,7 @@ |
|
|
|
// ==UserScript==
|
|
|
|
// @name PNGExtraEmbed
|
|
|
|
// @namespace https://coom.tech/
|
|
|
|
// @version 0.254
|
|
|
|
// @version 0.255
|
|
|
|
// @description uhh
|
|
|
|
// @author You
|
|
|
|
// @match https://boards.4channel.org/*
|
|
|
@ -87,7 +87,7 @@ const _DOMParser = DOMParser; |
|
|
|
var define_BUILD_VERSION_default; |
|
|
|
var init_define_BUILD_VERSION = __esm({ |
|
|
|
"<define:BUILD_VERSION>"() { |
|
|
|
define_BUILD_VERSION_default = [0, 254]; |
|
|
|
define_BUILD_VERSION_default = [0, 255]; |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
@ -16546,11 +16546,18 @@ const _DOMParser = DOMParser; |
|
|
|
} |
|
|
|
if (buff.slice(4, 4 + CUM6.length).equals(CUM6)) { |
|
|
|
const passed = buff.slice(4 + CUM6.length); |
|
|
|
const decoded = import_buffer3.Buffer.from(passed.toString(), "base64").toString().split(" ").map((e) => { |
|
|
|
return `https://${rprefs[e[0]]}/${e.slice(1)}`; |
|
|
|
}).join(" "); |
|
|
|
const k = await decodeCoom3Payload(import_buffer3.Buffer.from(decoded)); |
|
|
|
ret.push(...k.filter((e) => e).map((e) => e)); |
|
|
|
if (!passed.toString().match(/^[0-9a-zA-Z+/=]+$/g)) |
|
|
|
continue; |
|
|
|
try { |
|
|
|
const decoded = import_buffer3.Buffer.from(passed.toString(), "base64").toString().split(" ").map((e) => { |
|
|
|
if (!(e[0] in rprefs)) |
|
|
|
throw "Uhh"; |
|
|
|
return `https://${rprefs[e[0]]}/${e.slice(1)}`; |
|
|
|
}).join(" "); |
|
|
|
const k = await decodeCoom3Payload(import_buffer3.Buffer.from(decoded)); |
|
|
|
ret.push(...k.filter((e) => e).map((e) => e)); |
|
|
|
} finally { |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
case "IDAT": |
|
|
@ -16634,7 +16641,10 @@ const _DOMParser = DOMParser; |
|
|
|
return true; |
|
|
|
if (buff.slice(4, 4 + CUM6.length).equals(CUM6)) { |
|
|
|
const passed = buff.slice(4 + CUM6.length).toString(); |
|
|
|
return !!passed.match(/^[0-9a-zA-Z+/=]+$/g); |
|
|
|
if (passed.match(/^[0-9a-zA-Z+/=]+$/g)) { |
|
|
|
if (import_buffer3.Buffer.from(passed, "base64").toString().split(" ").every((l) => l[0] in rprefs)) |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
case "IDAT": |
|
|
|