New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

gmxhr-fetch

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gmxhr-fetch

fetch-like wrapper for GM_xmlhttpRequest.

  • 0.1.0
  • npm
  • Socket score

Version published
Weekly downloads
38
increased by11.76%
Maintainers
1
Weekly downloads
 
Created

gmxhr-fetch

A fetch-like polyfill for userscript managers.(TM,GM,VM)

To use

Add the following content into your script's metablock.

// @require https://unpkg.com/gmxhr-fetch
// @grant   GM_xmlhttpRequest
// @grant   GM.xmlHttpRequest

Then you can call gmfetch anywhere in the script just like fetch.

gmfetch('https://example.com').then(console.log)

FAQs

Package last updated on 22 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts