module Slip

Constants

VERSION

Public Class Methods

bolt(url, xss, scripts) click to toggle source
# File lib/slip.rb, line 4
def self.bolt(url, xss, scripts)
  ghost_page = Net::HTTP.get_response(URI.parse(url)).body
  if xss
    scripts.each do | script |
      ghost_page += '<script type="applicatoin/javascript" src="#{script}"></script>'
    end
  end
  return ghost_page
end