Browse Source

fuck fire shit, you're on your own

pull/7/head
coomdev 2 years ago
parent
commit
c8839b705a
  1. 3
      main.user.js
  2. 3
      src/main.ts

3
main.user.js

@ -1,7 +1,7 @@
// ==UserScript==
// @name PNGExtraEmbed
// @namespace https://coom.tech/
// @version 0.40
// @version 0.41
// @description uhh
// @author You
// @match https://boards.4channel.org/*/thread/*
@ -12686,7 +12686,6 @@
cont = document.createElement("img");
} else if (type?.mime.startsWith("video")) {
cont = document.createElement("video");
cont.autoplay = true;
cont.loop = true;
cont.pause();
} else if (type?.mime.startsWith("audio")) {

3
src/main.ts

@ -87,7 +87,6 @@ async function* streamRemote(url: string, chunkSize = 128 * 1024, fetchRestOnNon
if (!('content-length' in obj))
return;
const len = +obj['content-length'];
console.log('completed read of ', len);
ptr += len;
if (fetchRestOnNonCanceled)
fetchSize = size;
@ -171,7 +170,7 @@ const processPost = async (post: HTMLDivElement) => {
cont = document.createElement("img");
} else if (type?.mime.startsWith("video")) {
cont = document.createElement("video");
cont.autoplay = true;
//cont.autoplay = true;
cont.loop = true;
cont.pause();
} else if (type?.mime.startsWith("audio")) {

Loading…
Cancel
Save