S
S
sudo rm -rf /2017-05-04 09:53:22
JavaScript
sudo rm -rf /, 2017-05-04 09:53:22

How to inject js into the current inspector window from sublime text 3?

I decided to play around with usersctipts - to simplify my life a little in the browser, I use tampermonkey. I'm not very strong in js (and I don't plan to study purposefully yet), so before I "shove" something into the script, I check it in the chrome inspector (vivaldi). However, if you need to not just copy something, but, for example, fix some variable in the center of the code or add something, then it becomes not very comfortable. If you need to move the cursor to another place, especially if it is remote, then you have to reach for the mouse or the arrows on the keyboard (and if you hold them down, you can skip the right place and scroll through several commands).
Whether it's Sublime Text 3, in which everything is already set up for comfortable coding. But copy-paste is not always convenient, besides, if the edits are minimal, climbing back into sublime, editing and copying again is such a thing.
It would be nice to send code to the console from Sublime directly and execute immediately. Then you won’t have to switch between windows: it will reduce time, increase comfort.
Any suggestions?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question