AdguardTeam / CoreLibs

Core Adguard libraries
https://adguard.com/
Apache License 2.0
40 stars 7 forks source link

Access to function "GM_getValue" is not allowed #1905

Closed piquark6046 closed 2 weeks ago

piquark6046 commented 2 months ago

Please answer the following questions for yourself before submitting an issue

AdGuard version

AdGuard for Windows 7.18.1

Browser version

No response

OS version

Windows 11

Issue Details

Steps to reproduce:

  1. Install microShield by using https://cdn.jsdelivr.net/gh/List-KR/microShield@latest/microShield.user.js
  2. Visit https:/dogdrip.net

Expected Behavior

Getting a value from the userscript manager's storage is successful.

Actual Behavior

Getting a value from the userscript manager's storage fails with Access to function "GM_getValue" is not allowed in DevTool console tab.

Screenshots

No response

Additional Information

No response

ngorskikh commented 2 months ago

@piquark6046 Hi! As a workaround, you can change the dots in your @grants to underscores, for example: GM.getValue to GM_getValue. We'll handle this automatically in the future.