musicbrainz-scripts icon indicating copy to clipboard operation
musicbrainz-scripts copied to clipboard

Greasemonkey compatibility

Open kellnerd opened this issue 3 years ago • 2 comments
trafficstars

The voice actor userscript does not work with GM because it requires access to the MB global. Also, the script still contains a few jQuery references which had also broken the punctuation userscript in GM.

I should replace all remaining usages of jQuery and create a utility function to access MB and check all existing scripts again to see if they are working with GM then.

  • [x] Replace jQuery with native DOM utilities
  • [ ] Provide save access to MB and other global MBS variables (GM context)

kellnerd avatar Apr 27 '22 09:04 kellnerd

No more jQuery in any of my userscripts as of today 🎉

kellnerd avatar Jul 02 '22 16:07 kellnerd

This link from https://github.com/kellnerd/musicbrainz-scripts/issues/33#issuecomment-1373007877 might still be relevant here:

I should finally look into Sharing objects with page scripts

kellnerd avatar Jan 11 '23 12:01 kellnerd