+
 $ = (id) -> document.getElementById id
 bgUtils = chrome.extension.getBackgroundPage().Utils
 bgSettings = chrome.extension.getBackgroundPage().Settings

  readValueFromElement: -> @element.checked

class ExclusionRulesOption extends Option
  constructor: (field, onUpdated) ->
    super(field, onUpdated)
    $("exclusionAddButton").addEventListener "click", (event) =>
      @addRule()


      @url + "*"

initOptionsPage = ->
  onUpdated = ->
    $("saveOptions").removeAttribute "disabled"
    $("saveOptions").innerHTML = "Save Changes"

