diff --git a/README.md b/README.md index 4f9e8e5..5c3c159 100644 --- a/README.md +++ b/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 \ No newline at end of file diff --git a/build.js b/build.js index 25beb5b..7dd3a97 100644 --- a/build.js +++ b/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 diff --git a/main.user.js b/main.user.js index e6a612a..215de55 100644 --- a/main.user.js +++ b/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