shinzlet / oildrop

A tiny (~600 sloc) userscript manager that you can self-audit and fully trust.
https://addons.mozilla.org/en-CA/firefox/addon/oildrop/
GNU General Public License v3.0
7 stars 3 forks source link

Compatibility with GreaseMonkey / TamperMonkey userscripts #3

Open shinzlet opened 3 years ago

shinzlet commented 3 years ago

Oildrop does not currently expose any of GreaseMonkey's GM_ functions, nor does it use a metadata block. This makes it incompatible with scripts that use those features, which is a real disadvantage to certain users. My gut says that only massive userscripts would need the GM_ functions, as most style tweaks / functionality improvements don't require external assets or local storage (1).

Advantages:

Disadvantages:

1: Note that Oildrop can still do all of those things - you'll just have to do them the standard javascript way.

afontenot commented 3 years ago

I recently filed an issue with several feature suggestions (https://github.com/shinzlet/oildrop/issues/5) and I wanted to add a clarification to this issue: certain functions in the GM API implement things that can only be done with the privileged access that the extension has. In particular, GM.xmlHttpRequest can make requests that are not subject to the cross-origin request restrictions applied by a host's CORS headers.

shinzlet commented 3 years ago

Discussed a bit in #5 - I'll leave this open as it's probably the most important potential new feature with respect to growth.