|
|
@ -1,7 +1,7 @@ |
|
|
|
// ==UserScript==
|
|
|
|
// @name PNGExtraEmbed
|
|
|
|
// @namespace https://coom.tech/
|
|
|
|
// @version 0.241
|
|
|
|
// @version 0.242
|
|
|
|
// @description uhh
|
|
|
|
// @author You
|
|
|
|
// @match https://boards.4channel.org/*
|
|
|
@ -89,7 +89,7 @@ const _DOMParser = DOMParser; |
|
|
|
var define_BUILD_VERSION_default; |
|
|
|
var init_define_BUILD_VERSION = __esm({ |
|
|
|
"<define:BUILD_VERSION>"() { |
|
|
|
define_BUILD_VERSION_default = [0, 241]; |
|
|
|
define_BUILD_VERSION_default = [0, 242]; |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
@ -5302,12 +5302,12 @@ const _DOMParser = DOMParser; |
|
|
|
function Int64(buffer, offset, value, raddix) { |
|
|
|
if (!(this instanceof Int64)) |
|
|
|
return new Int64(buffer, offset, value, raddix); |
|
|
|
return init4(this, buffer, offset, value, raddix); |
|
|
|
return init5(this, buffer, offset, value, raddix); |
|
|
|
} |
|
|
|
function isInt64(b) { |
|
|
|
return !!(b && b[_isInt64]); |
|
|
|
} |
|
|
|
function init4(that, buffer, offset, value, raddix) { |
|
|
|
function init5(that, buffer, offset, value, raddix) { |
|
|
|
if (UINT8ARRAY && ARRAYBUFFER) { |
|
|
|
if (buffer instanceof ARRAYBUFFER) |
|
|
|
buffer = new UINT8ARRAY(buffer); |
|
|
@ -11595,7 +11595,7 @@ const _DOMParser = DOMParser; |
|
|
|
initQuantTables(sf); |
|
|
|
currentQuality = quality2; |
|
|
|
} |
|
|
|
function init4() { |
|
|
|
function init5() { |
|
|
|
var time_start = new Date().getTime(); |
|
|
|
if (!quality) |
|
|
|
quality = 50; |
|
|
@ -11606,7 +11606,7 @@ const _DOMParser = DOMParser; |
|
|
|
setQuality(quality); |
|
|
|
var duration = new Date().getTime() - time_start; |
|
|
|
} |
|
|
|
init4(); |
|
|
|
init5(); |
|
|
|
} |
|
|
|
if (typeof module !== "undefined") { |
|
|
|
module.exports = encode; |
|
|
@ -13169,7 +13169,7 @@ const _DOMParser = DOMParser; |
|
|
|
if (animation_name) |
|
|
|
delete_rule(node, animation_name); |
|
|
|
} |
|
|
|
function init4(program, duration) { |
|
|
|
function init5(program, duration) { |
|
|
|
const d = program.b - t; |
|
|
|
duration *= Math.abs(d); |
|
|
|
return { |
|
|
@ -13201,11 +13201,11 @@ const _DOMParser = DOMParser; |
|
|
|
} |
|
|
|
if (b) |
|
|
|
tick2(0, 1); |
|
|
|
running_program = init4(program, duration); |
|
|
|
running_program = init5(program, duration); |
|
|
|
add_render_callback(() => dispatch(node, b, "start")); |
|
|
|
loop((now2) => { |
|
|
|
if (pending_program && now2 > pending_program.start) { |
|
|
|
running_program = init4(pending_program, duration); |
|
|
|
running_program = init5(pending_program, duration); |
|
|
|
pending_program = null; |
|
|
|
dispatch(node, running_program.b, "start"); |
|
|
|
if (css) { |
|
|
@ -23514,13 +23514,13 @@ const _DOMParser = DOMParser; |
|
|
|
} |
|
|
|
function get_each_context7(ctx, list, i) { |
|
|
|
const child_ctx = ctx.slice(); |
|
|
|
child_ctx[2] = list[i]; |
|
|
|
child_ctx[3] = list[i]; |
|
|
|
return child_ctx; |
|
|
|
} |
|
|
|
function create_each_block7(ctx) { |
|
|
|
let div; |
|
|
|
let html_tag; |
|
|
|
let raw_value = linkifyStr(ctx[2]) + ""; |
|
|
|
let raw_value = ctx[1](ctx[3]) + ""; |
|
|
|
let t; |
|
|
|
return { |
|
|
|
c() { |
|
|
@ -23563,7 +23563,7 @@ const _DOMParser = DOMParser; |
|
|
|
insert(target, each_1_anchor, anchor); |
|
|
|
}, |
|
|
|
p(ctx2, [dirty]) { |
|
|
|
if (dirty & 1) { |
|
|
|
if (dirty & 3) { |
|
|
|
each_value = ctx2[0]; |
|
|
|
let i; |
|
|
|
for (i = 0; i < each_value.length; i += 1) { |
|
|
@ -23594,19 +23594,20 @@ const _DOMParser = DOMParser; |
|
|
|
function instance16($$self, $$props, $$invalidate) { |
|
|
|
let { files } = $$props; |
|
|
|
let contents = files.map((e) => e.data.toString()); |
|
|
|
const san = (s) => linkifyStr(s).split("\n").map((m) => m.trim().startsWith(">") ? `<span style="color: #b5bd68">${m.trim()}</span>` : m.trim()).join("\n"); |
|
|
|
$$self.$$set = ($$props2) => { |
|
|
|
if ("files" in $$props2) |
|
|
|
$$invalidate(1, files = $$props2.files); |
|
|
|
$$invalidate(2, files = $$props2.files); |
|
|
|
}; |
|
|
|
return [contents, files]; |
|
|
|
return [contents, san, files]; |
|
|
|
} |
|
|
|
var TextEmbeddings = class extends SvelteComponent { |
|
|
|
constructor(options) { |
|
|
|
super(); |
|
|
|
init(this, options, instance16, create_fragment16, safe_not_equal, { files: 1 }, add_css14); |
|
|
|
init(this, options, instance16, create_fragment16, safe_not_equal, { files: 2 }, add_css14); |
|
|
|
} |
|
|
|
get files() { |
|
|
|
return this.$$.ctx[1]; |
|
|
|
return this.$$.ctx[2]; |
|
|
|
} |
|
|
|
set files(files) { |
|
|
|
this.$$set({ files }); |
|
|
@ -24143,7 +24144,11 @@ const _DOMParser = DOMParser; |
|
|
|
} |
|
|
|
return true; |
|
|
|
}; |
|
|
|
var init4 = false; |
|
|
|
var startup = async (is4chanX = true) => { |
|
|
|
if (init4) |
|
|
|
return; |
|
|
|
init4 = true; |
|
|
|
const meta = document.querySelector('meta[name="referrer"]'); |
|
|
|
const customStyles = document.createElement("style"); |
|
|
|
customStyles.appendChild(document.createTextNode(global_default)); |
|
|
@ -24279,8 +24284,11 @@ const _DOMParser = DOMParser; |
|
|
|
} |
|
|
|
})); |
|
|
|
}; |
|
|
|
document.addEventListener("4chanXInitFinished", () => startup(true)); |
|
|
|
document.addEventListener("4chanParsingDone", () => startup(false), { once: true }); |
|
|
|
if (location.host.startsWith("boards.4chan")) { |
|
|
|
setTimeout(() => startup(false), 2e3); |
|
|
|
document.addEventListener("4chanParsingDone", () => startup(false), { once: true }); |
|
|
|
} |
|
|
|
document.addEventListener("4chanXInitFinished", () => startup(true), { once: true }); |
|
|
|
if (supportedAltDomain(location.host)) { |
|
|
|
if (location.host == "arch.b4k.co") { |
|
|
|
gmo = new MutationObserver((m) => { |
|
|
|