Skip to content

Instantly share code, notes, and snippets.

@Zequez
Created December 3, 2014 07:23
Show Gist options
  • Save Zequez/e66afbfcce19f8740e32 to your computer and use it in GitHub Desktop.
Save Zequez/e66afbfcce19f8740e32 to your computer and use it in GitHub Desktop.
Hotkey to reload Chrome Extensions with Autohotkey
; If someone wants to make a file watcher, you're very welcome to do so.
; This works pressing Alt+Shift+R
#SingleInstance force
SetTitleMatchMode RegEx
; You need to have the Extensions tab open in a separated window
; And then another window or tab with the page where you're testing your extension
; Change this to your testing page title
redirectWindowAfterReload = Title of your testing page - Google Chrome$
; This will match the chrome://extensions page
extensionsPageTitle = ^Extensions
; Press Alt+Shift+R to reload Chrome extensions
+!r::
WinGetTitle, CurrentWindowTitle, A
WinActivate, %extensionsPageTitle%
Send, ^r
; Uncomment the line below to go back to your text editor/IDE after reloading instead
; redirectWindowAfterReload := %CurrentWindowTitle%
WinActivate, %redirectWindowAfterReload%
Sleep 100
Send, ^r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment