We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0773b18 commit 434679eCopy full SHA for 434679e
1 file changed
src/ext/content-scripts/entry-userscripts.js
@@ -198,7 +198,7 @@ async function injection() {
198
// loop through each userscript @grant value, add methods as needed
199
for (let j = 0; j < grants.length; j++) {
200
const grant = grants[j];
201
- const method = grant.split(".")[1] || grant.split(".")[0];
+ const method = grant.startsWith("GM.") ? grant.slice(3) : grant;
202
// ensure API method exists in USAPI object
203
if (!Object.keys(USAPI).includes(method)) continue;
204
// add granted methods
0 commit comments