GoatSalad / megukascript

Userscript for the meguca imageboard
5 stars 3 forks source link

Broken features with Violentmonkey #55

Closed throwaway-slut closed 5 years ago

throwaway-slut commented 5 years ago

Certain features are broken when the script is used with Violentmonkey instead of Tampermonkey. I haven't tested everything, but at the very least image sekritposting and the music player are broken.

Error when using the music player:

[Violentmonkey][page][megucascript] 
ReferenceError: currentlyEnabledOptions is not defined
currentlyEnabledOptions is not defined

Line 1353, column 58:
  if (currentlyEnabledOptions.has("enablemegucaplayer")) mgcPl_setupPlaylist();
                                                         ^

Error when hovering over a picture with a sekritpost:

Uncaught TypeError: Cannot read property 'substring' of undefined
    at onload (<anonymous>:383:61)
    at <anonymous>:1:5796
    at d (<anonymous>:1:5841)
    at w (<anonymous>:1:15799)
    at HTMLDocument.<anonymous> (<anonymous>:1:4221)

Tested with both Opera and Waterfox. Features work fine using Tampermonkey with the same browsers.

GoatSalad commented 5 years ago

Monkey begone