Skip to content

Commit

Permalink
aaaaaaa i dont wanna rewrite half of this right now
Browse files Browse the repository at this point in the history
  • Loading branch information
adryd325 committed Nov 22, 2023
1 parent 3302ef2 commit 38aa80f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion dist/webpackTools.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,18 @@
]
};

unsafeWindow.__webpackTools_config = configs;
let thisSiteConfig;
for (let siteConfig of configs.siteConfigs) {
if (siteConfig.matchSites?.includes(window.location.host)) {
thisSiteConfig = siteConfig;
break;
}
}
if (!thisSiteConfig) {
return;
}

unsafeWindow.__webpackTools_siteConfig = thisSiteConfig;

GM_addElement("script", {
textContent: GM_getResourceText("runtimeScript"),
Expand Down

0 comments on commit 38aa80f

Please sign in to comment.