2022-01-08 18:01:01 +00:00
|
|
|
import { spawnSync } from 'child_process';
|
|
|
|
|
|
|
|
let res = spawnSync("git", ["rev-list", "--count", "HEAD"]);
|
|
|
|
let rev = +res.stdout;
|
|
|
|
|
|
|
|
export const extheader = `// ==UserScript==
|
2022-01-11 12:10:21 +00:00
|
|
|
// @name PNGExtraEmbed2
|
2022-01-08 18:01:01 +00:00
|
|
|
// @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==
|
|
|
|
`;
|