We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51a6343 commit a1bd7e7Copy full SHA for a1bd7e7
package.json
@@ -18,6 +18,7 @@
18
"https://*.gamer.com.tw/*"
19
],
20
"grant": [
21
+ "GM_getResourceText",
22
"GM_xmlhttpRequest",
23
"GM_setValue",
24
"GM_getValue"
scripts/external-resource.ts
@@ -44,7 +44,7 @@ function getExternalTransformMethod(options: PluginOptions) {
44
return name;
45
})();
46
47
- const code = `export default ${resource};`;
+ const code = `export default GM_getResourceText("${resource}");`;
48
49
// eslint-disable-next-line consistent-return
50
return {
0 commit comments