3

I'm used to making Greasemonkey scripts for Firefox, where I can edit the script while it's in the user profile, refresh, and see changes immediately.

I know that Chrome supports Greasemonkey scripts without needing the actual Greasemonkey plugin. Is it possible to do the same in-place script editing? If so, what is the path to the extension script?

Thanks.

Reinderien
  • 11,755
  • 5
  • 49
  • 77
  • possible duplicate of [Update a greasemonkey script in chrome without reinstalling?](http://stackoverflow.com/questions/3884794/update-a-greasemonkey-script-in-chrome-without-reinstalling) – Brock Adams Jul 24 '11 at 23:02

2 Answers2

2

You can go to developer tools, and use the 'Scripts' tab to directly edit the source of scripts. On Mac, Command + S works to "save" the script, although it doesn't seem to persist anywhere that I can find. I usually set a breakpoint since that seems to make chrome retain my changes even after a page refresh.

KyleWpppd
  • 2,010
  • 2
  • 16
  • 16
  • Eh, it's better than nothing... although clearly, the plugin itself is persisted somewhere. That's what I'm after. – Reinderien Jul 24 '11 at 16:58
  • Sorry, then because I clearly misunderstood the question. I don't think I can help at all then. =( – KyleWpppd Jul 24 '11 at 17:03
1

If you edit the extension in the default directory structure, changes and especially additions are wiped the next time Chrome restarts.

But if you setup a custom work environment, then you can edit-in-place, quite nicely.

See this answer.

Community
  • 1
  • 1
Brock Adams
  • 90,639
  • 22
  • 233
  • 295