Can embed any file in a PNG/WebM/GIF/JPEG and upload it to a third-party host through 4chan
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { spawnSync } from 'child_process';
|
|
|
|
|
|
|
|
let res = spawnSync("git", ["rev-list", "--count", "HEAD"]);
|
|
|
|
let rev = +res.stdout;
|
|
|
|
|
|
|
|
export const extheader = `// ==UserScript==
|
|
|
|
// @name PNGExtraEmbed2
|
|
|
|
// @namespace https://coom.tech/
|
|
|
|
// @version 0.${rev}
|
|
|
|
// @description uhh
|
|
|
|
// @author You
|
|
|
|
// @match https://boards.4channel.org/*
|
|
|
|
// @match https://boards.4chan.org/*
|
|
|
|
// @require https://unpkg.com/web-streams-polyfill/dist/polyfill.min.js
|
|
|
|
// @grant GM_xmlhttpRequest
|
|
|
|
// @grant GM.xmlHttpRequest
|
|
|
|
// @grant GM_openInTab
|
|
|
|
// @grant GM.openInTab
|
|
|
|
// @run-at document-start
|
|
|
|
// @connect 4chan.org
|
|
|
|
// @connect 4channel.org
|
|
|
|
// @connect i.4cdn.org
|
|
|
|
// @connect *
|
|
|
|
// @icon https://coom.tech/resources/assets/1449696017588.png
|
|
|
|
// ==/UserScript==
|
|
|
|
`;
|