Created
April 7, 2015 18:48
-
-
Save bitc/af626ff29b1fa6eb3aff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Requires that Google Chrome be started with: | |
# $ chromium-browser --remote-debugging-port=9222 | |
# Uses this library: https://github.com/fgalassi/chrome-remote-debug | |
require 'rubygems' | |
require 'chrome_remote_debug' | |
hrome = ChromeRemoteDebug::Client.new("127.0.0.1", 9222) | |
chrome.pages[0].reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment