dotfiles
dotfiles copied to clipboard
Add commands to send JS to chrome for execution
Using chrome-cli I can execute arbitrary JS in a page context. Just need to slap together the right system call from Vim. A start:
function! s:ExecuteInPageConsole()
let line = escape(getreg("."), "'")
silent call system("chrome-cli execute '" . line . "'")
endfunction
command! ExecuteInPageConsole call <sid>ExecuteInPageConsole()