<commit_before>({
  init: function() {
    debugger;
    this.urlChanged();
  },

  feedUrl: "",

  urlChanged: function() {
    chrome.storage.onChanged.addListener(function(changes, namespace) {
      for (var key in changes) {
        if (key === "current_user_url") {
          alert("!!!");
          console.log(changes[key].newValue);
          this.feedUrl = chages[key].newValue;
        }
      }
    });
  },

  getUserFeed: function() {
    $.ajax({
      type: "GET",
      url: this.feedUrl,
      dataType: "application/atom+xml",
      success: function (data) {
      },
      error: function (xhr, status, data) {
      },
    });
  }
}).init();
<commit_msg>Load user feed url from chrome storage<commit_after>var githubFeed = ({
  feedUrl: "",

  loadFeedUrl: function() {
    var self = this;
    chrome.storage.local.get("current_user_url", function(data) {
      self.feedUrl = data.current_user_url;
    });
  },

  urlChanged: function() {
    chrome.storage.onChanged.addListener(function(changes, namespace) {
      for (var key in changes) {
        if (key === "current_user_url") {
          alert("!!!");
          console.log(changes[key].newValue);
          this.feedUrl = chages[key].newValue;
        }
      }
    });
  },

  getUserFeed: function() {
    $.ajax({
      type: "GET",
      url: this.feedUrl,
      dataType: "application/atom+xml",
      success: function (data) {
      },
      error: function (xhr, status, data) {
      },
    });
  },

  init: function() {
    this.urlChanged();
    return this;
  },
}).init();
githubFeed.loadFeedUrl();

{'fraction_non_alphanumeric': 0.16468378209142143, 'fraction_numerical': 0.0, 'mean_word_length': 2.315352697095436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1649885', 'n_tokens_mistral': 521, 'n_tokens_neox': 508, 'n_words': 98}