function addSetting() {
  var setting = document.getElementById("setting-value").value;
  var obj = {};
  obj["setting"] = setting
  chrome.storage.local.set(obj);
}
chrome.storage.local.get("setting", function(result) {
  var setting = 60;
  if (debug == true) {
    setting = 1;
  }
  if (result["setting"]) {
    setting = result["setting"];
  }
  document.getElementById("setting-value-view").innerHTML = setting;
});
document.getElementById("setting").addEventListener("click", addSetting);

@@ -157,16 +157,85 @@
 t(obj);%0A
+  document.getElementById(%22setting-value-view%22).innerHTML = setting;%0A
 %7D%0Achrome

Add realtime setting value updating function