Browse Source

Do updating properly

Based on https://stackoverflow.com/questions/38023717
pull/7/head
viliml 2 years ago
parent
commit
f9a0123725
  1. 2
      build.js
  2. 17
      main.meta.js
  3. 3
      main.user.js

2
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);
})();

17
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==

3
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

Loading…
Cancel
Save