(function (){
  "use strict";
  console.log('Extension only works in trello.com/*');
})();

(function (){
  "use strict";

  function getBoardID(){
    var pathname = window.location.pathname;
    var regex = /\/b\/(\w*)(\/*)/;
    var boardID = regex.exec(pathname);
    if(!boardID){
      alert('Not a Trello board!');
      return;
    }
    return boardID[1];
  }

})();

Add function to extract Trello board ID from path
Add function to extract Trello board ID from path
