Commit Graph
3 Commits
Author SHA1 Message Date
Dave Shoreman 7d80643bfe Add native XMLHttpRequest in case all else fails 2021-11-21 13:41:17 +00:00
Dave Shoreman 214b3fd89f Add Greasemonkey compatibility
Greasemonkey in Firefox doesn't have the GM_xmlhttpRequest function, so
the script breaks when it tries to call the function. This adds a check
before falling back to Greasemonkey's GM.xmlHttpRequest() if available.
2021-11-21 12:15:15 +00:00
Dave Shoreman 007a53f546 Improve logging
Adds a log helper to easily prefix all output with the plugin name,
improving the console when multiple youtube-related plugins are used.

Also adds a couple extra log lines to make it easier to see when it's
loaded or sending the request in case things don't go quite right.
2021-11-21 12:12:22 +00:00