What I’m trying to do is load Facebook.com in safari, except with my added javascript which regularly checks for received chat messages and translates them.
How do I got about this without making a safari extension, or using grease kit?
I guess what I need to do is load Facebook.com, but with my script tacked/”injected” in the head of the document…
What I’m trying to do is load Facebook.com in safari, except with my added
Share
I can’t speak for Safari, but in Firefox there is a marvelous addon called GreaseMonkey that does exactly what you want: execute arbitrary JS of your choosing/creation on arbitrary websites. I use it on google to keep down their tracking of my clicks.
Update:
I don’t know why you have these constraints. Not using GreaseMonkey means doing a huge amount of work, and for what purpose? I suppose you could use any one of a number of proxy servers and have it do this for you automatically, but that would mean:
Bottom line: You can’t change Safari itself so you either use an existing addon, make one yourself (no easy feat), or use a proxy. Life is too short as it is, so go grab GreaseMonkey and be done with it.