Summary
GM_xmlhttpRequest and GM.xmlhttpRequest API cannot be used in an userscript when @grant GM.xmlhttpRequest is set instead of @grant GM_xmlhttpRequest.
The userscript works on the following environments:
- a Chromium browser (Brave 1.56.11) + AdGuard Browser Extension 4.1.57 + Violentmonkey 2.15.0
- Firefox browser + AdGuard Browser Extension 4.1.57 + Violentmonkey 2.15.0
Test page
Reference
https://github.com/List-KR/linkproduct-privacy (Tested version: 1.0.1)