Skip to content

Instantly share code, notes, and snippets.

@bitc
Created April 7, 2015 18:48
Show Gist options
  • Save bitc/af626ff29b1fa6eb3aff to your computer and use it in GitHub Desktop.
Save bitc/af626ff29b1fa6eb3aff to your computer and use it in GitHub Desktop.
#!/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