20,741
edits
m (→The Script: remove debugging code) |
|||
| Line 321: | Line 321: | ||
// move DEBUG handling to a persistent configuration flag so that we can configure this using a jQuery dialog | // move DEBUG handling to a persistent configuration flag so that we can configure this using a jQuery dialog (defaulted to false) | ||
var DEBUG = get_persistent("debug_mode_enabled",false); | var DEBUG = get_persistent("debug_mode_enabled",false); | ||
| Line 343: | Line 343: | ||
function get_persistent(key, default_value) { | function get_persistent(key, default_value) { | ||
// https://wiki.greasespot.net/GM_getValue | |||
return GM_getValue(key,default_value); | return GM_getValue(key, default_value); | ||
} // get_persistent | } // get_persistent | ||
| Line 635: | Line 635: | ||
//alert("configuration dialog is not yet implemented"); | //alert("configuration dialog is not yet implemented"); | ||
var checked = (get_persistent("debug_mode_enabled",false)==true) ? 'checked': ''; | var checked = (get_persistent("debug_mode_enabled",false)==true) ? 'checked': ''; | ||
//dbLog("value is:"+get_persistent("debug_mode_enabled")); | |||
dbLog("persistent debug flag is:"+checked); | //dbLog("persistent debug flag is:"+checked); | ||
var setupDiv = $('<div id="setupDialog" title="Setup dialog">configuration dialog is not yet implemented</p><label><input id="debugcb" type="checkbox"'+checked+'>Enable Debug mode</label></div>'); | var setupDiv = $('<div id="setupDialog" title="Setup dialog">configuration dialog is not yet implemented</p><label><input id="debugcb" type="checkbox"'+checked+'>Enable Debug mode</label></div>'); | ||