document.addEventListener('DOMContentLoaded', function() {
  restore_options();
  document.getElementById('myonoffswitch').addEventListener('click', save_options);
});

function save_options() {
  var twitterSwitch = document.getElementById("twitterOn").checked;
  var faceBookSwitch = document.getElementById("facebookOn").checked;
  var fbFloorSwitch = document.getElementById("facebookCharFloor").checked;
  var alwaysUrlSwitch = document.getElementById("alwaysAddUrl").checked;

  chrome.storage.sync.set({
    twitterOn: tw,
    facebookOn: fb,
    facebookCharFloor: fbFloor,
    alwaysAddUrl: url

  }, function() {
    var status = document.getElementById('status');
    status.textContent = 'Options saved!';

    setTimeout(function() {
      status.textContent = '';
    }, 750);
  });
}

function restore_options() {
  chrome.storage.sync.get({
    //send key value pairs of user's changed options to update. Make async.
  }, function(items) {
    //Luke Kedz wrote this callback. It should act like a switch..case for checked
    //boxes.
    document.getElementById("twitterOn").checked = items.twitterOn;
    document.getElementById("facebookOn").checked = items.facebookOn;
    document.getElementById("facebookCharFloor").checked = items.facebookCharFloor;
    document.getElementById("alwaysAddUrl").checked = items.alwaysAddUrl;
  });
};
@@ -73,16 +73,36 @@
 ions();%0A
+  userRailsOauth();%0A
   docume
@@ -1369,8 +1369,106 @@
   %7D);%0A%7D;
+%0A%0Afunction userRailsOauth() %7B%0A  chrome.identity.getProfileUserInfo(function(userInfo) %7B%0A%0A  %7D);%0A%7D;%0A

Add function UserRailsOauth, include chrome's userInfo getter function