Posted May 31, 2015
hyperagathon: OK, so I had to mess with it a bit more. The above works fine if you don't have any settings you've saved. The suspicious line was there because the author stored the settings as JSON. Blah blah blah, here's the (fully) functioning version:
initialise: function(initial_values, done) {
var saved_settings = {}
try {
var s = GM_getValue('settings', '{}')
if (s) { saved_settings = JSON.parse(s); }hyperagathon:
As a non-coder, it took a second glance to convince me I could actually try that out. Works beautifully, got me my BE functionality back 100%. Thanks a bunch and +1, hyperagathon! initialise: function(initial_values, done) {
var saved_settings = {}
try {
var s = GM_getValue('settings', '{}')
if (s) { saved_settings = JSON.parse(s); }
Got it, thanks!
Post edited May 31, 2015 by chevkoch