From f9a0123725cf5644cafa213c4decb55e834dc7b6 Mon Sep 17 00:00:00 2001 From: viliml Date: Sun, 2 Jan 2022 16:32:29 +0100 Subject: [PATCH] Do updating properly Based on https://stackoverflow.com/questions/38023717 --- build.js | 2 +- main.meta.js | 17 +++++++++++++++++ main.user.js | 3 +-- 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 main.meta.js diff --git a/build.js b/build.js index 047a5ff..ec38450 100644 --- a/build.js +++ b/build.js @@ -19,7 +19,6 @@ const extheader = `// ==UserScript== // @match https://boards.4chan.org/* // @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 @@ -65,5 +64,6 @@ const extheader = `// ==UserScript== console.log(Object.entries(res.metafile.inputs).sort((a, b) => a[1].bytes - b[1].bytes).map(e => `${e[0]} -> ${e[1].bytes}`).join('\n')); writeFileSync('./main.user.js', extheader + readFileSync('./dist/main.js')); + writeFileSync('./main.meta.js', extheader); })(); diff --git a/main.meta.js b/main.meta.js new file mode 100644 index 0000000..41192cb --- /dev/null +++ b/main.meta.js @@ -0,0 +1,17 @@ +// ==UserScript== +// @name PNGExtraEmbed +// @namespace https://coom.tech/ +// @version 0.47 +// @description uhh +// @author You +// @match https://boards.4channel.org/* +// @match https://boards.4chan.org/* +// @icon https://www.google.com/s2/favicons?domain=4channel.org +// @require https://unpkg.com/web-streams-polyfill/dist/polyfill.min.js +// @grant GM_xmlhttpRequest +// @grant GM.xmlHttpRequest +// @run-at document-start +// @connect 4chan.org +// @connect 4channel.org +// @connect i.4cdn.org +// ==/UserScript== diff --git a/main.user.js b/main.user.js index 4990598..7726349 100644 --- a/main.user.js +++ b/main.user.js @@ -1,14 +1,13 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.46 +// @version 0.47 // @description uhh // @author You // @match https://boards.4channel.org/* // @match https://boards.4chan.org/* // @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