문제

I'm currently working on developing a user script for Firefox. Every time I've made a change, I have to manually refresh the tab with the script and reinstall the script. I want to do the thing that's asked in this question, but in Firefox.

Is there a way to automate this so that the user script automatically gets reinstalled every time I save the file in emacs?

도움이 되었습니까?

해결책

If I understand your quesiton correctly you want to avoid the hassle of reinstalling your userscript each time you save it in your editor.

Here are the step-by-step instructions.

  1. Install Greasemonkey in Firefox.

  2. Install your script in Firefox (via Greasemonkey).

  3. Firefox Menu -> Tools -> Greasemonkey -> Manage User Scripts -> Right-click on the script you are working on.

  4. (a) Select "Edit" to open your script in your default editor (emacs?).

    or

    (b) Select "Show Containing Folder" to open the folder containing your script and subsequently open it with a custom editor (e.g. emacs).

  5. Update the script in your editor as needed and the modification will take effect the moment you save it. Yet you still have to refresh the web page on which your script runs in order to see the result.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top