Add MS2Porter modules.js, better sub module support, more

This commit is contained in:
Ducko 2021-01-23 14:19:00 +00:00
parent 367495a3a5
commit 342da60dd7
2 changed files with 81 additions and 8 deletions

View file

@ -39,7 +39,7 @@ let moduleJson = [];
for (const repo of ModuleRepos) {
// console.log(repo);
console.time(repo.slice(0, 2).join('@'));
console.time(repo.slice(0, 2).join(' @ ')+`${repo[2] ? ` ${repo[2]}` : ''}`);
const url = `https://github.com/${repo[0]}.git`;
const commitHash = repo[1];
@ -56,7 +56,7 @@ for (const repo of ModuleRepos) {
const lastHash = await new Promise((res) => exec(`git rev-parse HEAD`, (err, stdout) => res(stdout.trim())));
await new Promise((res) => exec(`git checkout ${commitHash}`, res))
await new Promise((res) => exec(`git checkout ${commitHash}`, res));
const manifest = JSON.parse(readFileSync(`${cloneDir}${moduleDir}/goosemodModule.json`));
@ -87,7 +87,7 @@ for (const repo of ModuleRepos) {
authors: manifest.authors
});
console.timeEnd(repo.slice(0, 2).join('@'));
console.timeEnd(repo.slice(0, 2).join(' @ ')+`${repo[2] ? ` ${repo[2]}` : ''}`);
// console.log(lastHash);

View file

@ -1,6 +1,79 @@
export default
[
['GooseMod/GMExampleModule', 'ba7c20f44fe88780286ac88b47b933609016c7ef'],
['GooseMod/GMExampleModule', 'ba7c20f44fe88780286ac88b47b933609016c7ef', '/subModule'],
['Controlfreak707/GM-Copy-Raw', 'ae3f739f4d53344f87b1b404686d100394a566ee']
];
[
['GooseMod/GMExampleModule', 'ba7c20f44fe88780286ac88b47b933609016c7ef'],
['GooseMod/GMExampleModule', 'ba7c20f44fe88780286ac88b47b933609016c7ef', '/subModule'],
['Controlfreak707/GM-Copy-Raw', 'ae3f739f4d53344f87b1b404686d100394a566ee'],
// Auto-generated by MS2Porter
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/avatarDataAttribute'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/customCss'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/devMode'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/fucklytics'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/noPingReply'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/silentTyping'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/customSounds'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/discordDebug'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/eggScrambler'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/expandCord'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/messageScrambler'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/owoCord'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/rainbowCord'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/censorRudeWords'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/copyRaw'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/hideBlockedMessages'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/noMessageDeletion'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/roleColoredMessages'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/twitchEmotes'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/usernameInAuthor'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/wysiwygMessages'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/clearRecentGames'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/downloadImagesShortcut'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/gameActivityButton'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/macros'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/relaunch'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/sendButton'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/bloodyHellMate'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/comfyTheme'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/couveTheme'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/customTheme'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/darkerTheme'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/darkestTheme'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/draculaTheme'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/duvboxTheme'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/iFixedDiscordTheme'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/nordtheme'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/protoncord'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/slateTheme'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/solarizedDarkTheme'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/splendidTheme'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/betterChannelIndicators'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/betterNsfw'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/bottomBar'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/deNitro'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/fullscreenInbox'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/gradientButtons'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/hardcodedColorFixer'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/hideClyde'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/hideMessage'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/hideQuickReactions'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/horizontalServerList'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/nicerUserConnections'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/nicknamePanel'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/noNotes'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/overlayUserPanel'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/powerAnimations'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/radialStatus'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/revampedUserArea'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/serverCount'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/showAllActivities'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/simpleStatusIcons'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/stickyNotes'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/toggleMessageButtons'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/userPopoutCreationDate'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/usrbgDefault'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/usrbgHeaders'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/vcColumns'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/visualTweaks'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/vscodeToasts'],
['GooseMod/MS2Porter', '574cb054d32d165636de8eb9e8743c5bc7912306', '/modules/webhookTags'],
];