nicekiwi/mediaboxAdvanced — comment on commit bcd812ef750fce4df5804b9856deeb336b8e0289
File:  line 0
By iaian7:

Unfortunately, this doesn't actually fix the issue, it merely prevents the error from being generated. The options object is still undefined until after this part of the script is evaluated (unless options are defined in the). For now, removing the "options.clickBlock &&" part of the IF check will allow the code to operate as expected (blocking context clicks on media links), and removing or commenting the code will disable it.