module Telepathy

Constants

VERSION

Public Class Methods

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