diff --git a/assets/rules.json b/assets/rules.json index ca397ae6..9c30657d 100644 --- a/assets/rules.json +++ b/assets/rules.json @@ -20,7 +20,8 @@ "condition": { "domainType": "thirdParty", "urlFilter": "||api.bilibili.com", - "resourceTypes": ["xmlhttprequest"] + "resourceTypes": ["xmlhttprequest"], + "requestMethods": ["post"] } }, { @@ -44,7 +45,8 @@ "condition": { "domainType": "thirdParty", "urlFilter": "||passport.bilibili.com", - "resourceTypes": ["xmlhttprequest"] + "resourceTypes": ["xmlhttprequest"], + "requestMethods": ["post"] } } ] diff --git a/src/manifest.ts b/src/manifest.ts index 1c5bac03..215ef4fb 100644 --- a/src/manifest.ts +++ b/src/manifest.ts @@ -80,5 +80,13 @@ export async function getManifest() { if (isDev) manifest.permissions?.push('webNavigation') + if (isFirefox) { + manifest.browser_specific_settings = { + gecko: { + id: 'addon@bewlybewly.com', + }, + } + } + return manifest }