Browse Source

Autoupdate and versionning

pull/7/head
coomdev 2 years ago
parent
commit
a0b98f42b2
  1. 1
      README.md
  2. 10
      build.js
  3. 7
      main.user.js

1
README.md

@ -53,4 +53,5 @@ Bugs
====
- Cannot expand a file that was embedded in a post that was inlined.
- fails to find files in new posts after a thread update
- more to come

10
build.js

@ -1,17 +1,21 @@
/* eslint-disable */
const { spawnSync } = require('child_process');
const { writeFileSync, readFileSync } = require('fs');
let res = spawnSync("git", ["rev-list", "--count", "HEAD"]);
let rev = +res.stdout;
const extheader = `// ==UserScript==
// @name PNGFileEmbed
// @namespace https://tampermonkey.net/
// @version 0.1
// @name PNGExtraEmbed
// @namespace https://coom.tech/
// @version 0.${rev}
// @description uhh
// @author You
// @match https://boards.4channel.org/*/thread/*
// @match https://boards.4chan.org/*/thread/*
// @icon https://www.google.com/s2/favicons?domain=4channel.org
// @require https://unpkg.com/web-streams-polyfill/dist/polyfill.min.js
// @updateURL https://git.coom.tech/coomdev/PEE/raw/branch/%e4%b8%ad%e5%87%ba%e3%81%97/main.user.js
// @grant GM_xmlhttpRequest
// @grant GM.xmlHttpRequest
// @run-at document-start

7
main.user.js

@ -1,13 +1,14 @@
// ==UserScript==
// @name PNGFileEmbed
// @namespace https://tampermonkey.net/
// @version 0.1
// @name PNGExtraEmbed
// @namespace https://coom.tech/
// @version 0.36
// @description uhh
// @author You
// @match https://boards.4channel.org/*/thread/*
// @match https://boards.4chan.org/*/thread/*
// @icon https://www.google.com/s2/favicons?domain=4channel.org
// @require https://unpkg.com/web-streams-polyfill/dist/polyfill.min.js
// @updateURL https://git.coom.tech/coomdev/PEE/raw/branch/%e4%b8%ad%e5%87%ba%e3%81%97/main.user.js
// @grant GM_xmlhttpRequest
// @grant GM.xmlHttpRequest
// @run-at document-start

Loading…
Cancel
Save