def content_scripts_as_json
      spec.content_scripts.map do |cs|
        cs_json = {
          :matches => cs.include_patterns
        }

        cs_json[:exclude_matches] = cs.exclude_patterns unless cs.exclude_patterns.empty?
        cs_json[:run_at] = cs.run_at if cs.run_at
        cs_json[:all_frames] = cs.all_frames unless cs.all_frames.nil?
        cs_json[:css] = cs.stylesheets unless cs.stylesheets.empty?
        cs_json[:js] = cs.javascripts unless cs.javascripts.empty?

        cs_json
      end
    end
def content_scripts_as_json
      spec.content_scripts.map do |cs|
        cs_json = {
          :matches => cs.include_patterns
        }

        cs_json[:exclude_matches] = cs.exclude_patterns unless cs.exclude_patterns.empty?
        cs_json[:run_at] = cs.run_at if cs.run_at
        cs_json[:all_frames] = cs.all_frames unless cs.all_frames.nil?
        cs_json[:css] = cs.stylesheets unless cs.stylesheets.empty?
        cs_json[:js] = cs.javascripts unless cs.javascripts.empty?

        cs_json
      end
    end
Return the manifest representation of the content scripts, if any