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..9c52fc8 --- /dev/null +++ b/main.meta.js @@ -0,0 +1,17 @@ +// ==UserScript== +// @name PNGExtraEmbed +// @namespace https://coom.tech/ +// @version 0.51 +// @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 fa0383d..652bf4a 100644 --- a/main.user.js +++ b/main.user.js @@ -1,14 +1,13 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.47 +// @version 0.51 // @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