I'm working on a bookmarklet, and thought I'd throw down a challenge: how to inject an external javascript file from a link in as few characters as possible.
Here's the shortest I was able to come up with:
javascript:(function(d){d.body.appendChild(d.createElement('script')).src='URL'})(document)
That's 88 characters without the URL.
Can the Stack Overflow javascript gurus here do better? I'll be accepting the working answer with the fewest characters, so put on your thinking caps!
(One thing: the bookmarklet must work in all major browsers. This is a clever solution, but doesn't work in all major browsers, because it returns a value.)