gm4-polyfill

A compatibility tool to ease making User Scripts compatible with both Greasemonkey 4 and other/older user script engines.

Usage no npm install needed!

<script type="module">
  import gm4Polyfill from 'https://cdn.skypack.dev/gm4-polyfill';
</script>

README

This utility is designed to ease authoring user scripts compatible with both Greasemonkey 4 and other/older user script engines.

Include it in your script like:

// @require https://cdn.jsdelivr.net/npm/gm4-polyfill/gm4-polyfill.min.js

Read the source of the file for more details.