4

skewer-mode works perfectly with their default demo page (http://127.0.0.1:8080/skewer/demo). I'm able to send commands from skewer-repl like alert('hello world') and it appears on that particular URL.

Now, how to make the same functionality to work with external sites ? I have already injected the greasemonkey script in the external site but it doesn't seem to work for me. The problem is that skewer-repl seems to only interact with it's demo url: http://127.0.0.1:8080/skewer/demo . Is there a way to make it work with external sites ?

Sibi
  • 3,603
  • 2
  • 22
  • 35

1 Answers1

4

Finally figured this out. Make sure that the following line is present in the greasemonkey script which you inject:

// @include /^https?:///

That will enable skewering of every site. Now do a refresh of the the page. Now at the top right hand side of the window (firefox window) there will be a red triangle. Press on that triangle to inject the greasemonkey script. You will observe that the color will change from red to green. Only now, you can start communicating from skewer-repl.

Note: Make sure that you scroll to the top of the page to find the red triangle, the triangle doesn't move with scrollbar.

Sibi
  • 3,603
  • 2
  • 22
  • 35