While Greasemonkey, the popular extension for changing the way websites display, might not be currently available via the Firefox 3 addons manager or the Mozilla addons website, you can indeed install a working version from the developer's site. We installed the greasemonkey-0.8.20080609.0.xpi into Firefox 3 RC2 on Mac OS 10.5, and our scripts worked like a charm.
In case you're new to the Greasemonkey realm, here are three scripts to get you going:
Gmail 2.0 Multiple HTML Signatures - allows you to maintain a set of HTML signatures for Gmail that are automatically changed when you select different "From" addresses in your compose mail window. Alternatively, you could use a bookmarklet.
Digg Add Mirrors - adds links to Coral Cache, Duggmirror, Duggback, and Google Cache to Digg stories.
Image Host Redirector - redirects image links directly to image instead of intermediate image host page.
As the Writer's Strike continues into the end of January with no real end in sight, most people are running out of quality TV programs to watch. Heck, we're even running out of quality-less programs to watch. Unless you are a fan of reality shows such as Gladiator, there isn't much coming in the next month or so, if at all, for this rapidly evaporating season.
I think it is time we in the software industry step up to the plate and offer our help. With what we know about artificial intelligence (AI), genetic algorithms, and natural-language parsing, it should be possible to develop a software program where TV scripts are created based on previous episodes.
What we need are:
Characters in the series and their attributes (gender, personality, etc.)
Tons of previous scripts
The series formula, e.g. The new clue to solve the case between minutes 39 and 40 in Law & Order, or CSI.
A genetic algorithm that learns the characteristic of the series through all the existing episodes, e.g. how each character behaves, their favorite catchphrases, and how the general plot line evolves. For many shows, just the catchphrase would suffice.
A software bot to trawl the net for bizarre news as seed to generate new stories.
The scripts generated by this AI program would probably not very good at first -- but hey, neither was Seinfeld -- they might not make sense at all. But, after some teaching sessions by a human -- perhaps volunteers from the audience? It's all about crowd-sourcing these days, right? -- some reasonable scripts should result.
Granted this strategy would not work for proper drama like 24, Dexter, Weeds, etc. which all have major story arcs running through entire seasons but, it should work great for formulaic shows such as Law & Order, CSI, Numbers, Psych, where almost everything stays the same from episode to episode with only minor plot device differences in between.
How much effort would it take to develop this AI program? I don't have the faintest idea. I just suggest stuff, it's up to other people to handle the sticky details of implementation. I can imagine modifying an existing AI algorithm to accept TV scripts instead of whatever scientific research data, let it run on some beefy servers (may be run it as adistributed project like SETI@home? New TV shows are at least as important as finding aliens, maybe moreso.), and see what comes out at the other end.
Remember, this idea is hardly new. It has already been done with financial news by Thomson Financial as reported by Wired back in 2006. Is it such a big leap from news to formulaic drama?
Come on, doesn't this sound like a fantastic final year college project? Surely the prospect of getting your final assignment done and being the hero who breaks the Writer's Strike deadlock sounds appealing to someone?
More interesting question is: Which one is smarter? Law & Order, or an artificial intelligence program? With Fred Thompson dropping out of the presidential race, our money is on the AI.
You have probably noticed this yourself: when you do a search on Google there tends to be a lot of unfilled, unused, or otherwise blank area to the right of the search results that could be used for better things. Things besides ads that might relate to your search. Such as Wikipedia summaries for your search term, or related images and videos, and dictionary definitions. That would be nice, wouldn't it?
Well, If you've ever had such dreams of grandeur, that wish has been fulfilled.
It's called Google Extra, a Greasemonkey script that adds just that extra functionality you've been looking for in your Google searches. Let's say you search for the term "monkeys." Not only are you served your usual search results about "monkeys" on the left, but results from an image search, video search, a Wikipedia entry on "monkeys," and the dictionary definition of what monkeys are on the right.
The nice thing is, you can organize the stack of result boxes in any way you want. So, if for convenience's sake, you preferred a dictionary definition at the very top before your image results, you can do that. The script remembers your preferences, locking in every last ounce of goodness from your searches. That, and the extra results load after your primary ones, which keeps the experience quick and snappy without a noticeable increase in page load times.
Earlier today we showed you how to enable a preview for TinyUrls by using the 'Enable preview' feature from the TinyUrl website - allowing you to forgo the leap of faith these little links would usually require of you.
Wish there was a more elegant approach to the problem? Well, for Firefox users (and other browsers for which Greasemonkey is available) this has been solved, thanks to a Greasemonkey script that does for TinyUrl links what X-rays did for the world of medicine.
Once you have installed the script, all you have to do is hover over a TinyUrl link to see where it leads. So simple it's beautiful. And although you can always enable the TinyUrl preview option with a browser cookie from the TinyUrl website, it's not nearly as slick or integrated as the TinyUrl Popup Preview script.
So, if you're paranoid of people sneaking you weird links disguised in TinyUrls or simply want to know where that link in a tweet from a Twitter friend points to, the TinyUrl Popup Preview script for Greasemonkey fits the bill.
Gmail could very well be one of the most hackable web services of all time. One only needs to check our Gmail tag to see what tools are available for enhancing one's experience, and now we have a slick new cross-platform Firefox add-on to link to from our friends at Lifehacker: Better Gmail. As its name suggests, Better Gmail rounds up a number of popular Greasemonkey scripts and other extras into a handy management UI, complete with links to homepages if you need to find out more about any of the included extras. As you can see, this add-on packs a wallop, including many of our old (and new) favorites such as the Macros script (for many more keyboard shortcuts Gmail should really have in the first place), an Unlabelled label hack and a Filter Assistant which brings that handy email client functionality of building filters from a currently selected message. Of course, one could run out and find all these scripts on their own, but Better Gmail takes the clicking out of that process and wraps all this great stuff into one handy extension, complete with the ability to disable it all in one fell swoop in case you need to get back to Gmail's basics.
Why Google hasn't built something as fundamental as a todo manager into Google Calendar is beyond us, but now you have one more option for tasks on in gCal. While we've previously seen hidden code lead to speculation that todos were (finally) coming, as well as Remember the Milk integration, a new Greasemonkey script brings its own todo list to Google Calendar with an interesting twist. As you can see, this script from Google Operating System gives you a basic todo list without anything like alarms or filing in different calendars. The advantage here, however, is that the script saves todos as events in your calendar, which means you can get to these todos from any computer on which you install the script.
Check out Google Operating System's post for more details, or simply install the script to hit the ground running.
Userscripts.org is a useful repository of scripts for Greasemonkey, the killer Firefox add-on that allows you to augment the way some sites look or function. I've used the site for some time now, but was always a little irked at its not-so-intuitive design. As you can see, the new design offers a breath of fresh air, with a much cleaner and more streamlined experience, though it isn't quite a major feature update just yet. This post in their forums announces the new site and their intentions, while the roadmap at the bottom of their wiki reveals a bit more about what's to come.
Individual script pages look good in this new format, with a clear description column and a sidebar containing all the pertinent metadata and tags. A big black "Install this script" button replaces the old, hard-to-find HTML link of the previous design, and I particularly like the link at the bottom of the content column to contributors who helped out with the script.
All things considered, I think this is a successful redesign that should bring the site more credibility and attention from both Greasemonkey script writers and users. I'll be interested to see how those new features roll into the site in the coming weeks and months.
Mihai Parparita, avid Googler and Greasemonkey script peddler extraordinaire, has been blogging a fewupdates to the fantastic Gmail scripts he's had a hand in. Mihai has made changes and added a few features recently, but also points to a Google Group where users have been trading their own mods to the scripts.
Most notably, the new features in Mihai's 'official' Gmail Macros script include:
h: Show help (reference for built-in and the script's keyboard shortcuts)
Saved searches can now be selected using the 'g' label selector
Finally, to make the scripts more accessible (and possibly open source-able), Mihai has moved the scripts he's had a hand in to a Google Code repository. He's also considering opening up the 'project' so others can commit changes, though users can simply watch changes in the RSS feed for now.
If you want to make a PDF from your web pages for visitors to download, use FPDF, a very simple, powerful PHP class that is free to download, and easy to configure. There are several tutorials on the FPDF website on how to use the class, and the manual makes all the functions easy to use and modify. FPDF makes controlling every aspect of your PDF creation simple, including adding an image or logo, margin, auto-pagination, printing, preview, font, embedded links, and tons of other options. It takes less than an hour to setup and begin using it, which isn't too shabby for all the options you can set. All you need to use it is a fairly recent release of PHP on a web server. The test template that comes with the package is easy to modify for whatever uses you may need, without having to learn what each function does. If the code doesn't already exist in the file you download, FPDF.org has all kinds of examples and code references, some written by the fpdf community that you can cut and paste to wire up whatever you (or a client) may require. FPDF is great for pulling dynamic content from a database since it contains a simplistic HTML parser by default. Feed FPDF one HTML string (from a database, or static HTML) and it will polish off your PDF for you in grand style. For even more fun, you can setup fpdf to receive variables from a GET or POST form then insert them in the script to be displayed in your pdf as well. FPDF is powerful, fast, flexible, and very nearly fun. Not bad for FREE.
Ooh, now this is cool: Lifehacker points us to a this great Stylish script that gently tweaks Gmail to put meaningful icons next to messages with attachments. Instead of a generic paperclip icon, this puts a PDF icon next to messages with PDF attachments, an image icon next to messages with attached images, and so on for Word docs, Zip files, text files, executables, video files, and so on. Very cool.
In case you're not familiar, Stylish is a great extension for Firefox that lets you set up custom styles for web sites, letting you do little things like the tweak above to things like reskinning or totally changing the layout of other sites, and even Firefox itself. Userstyles.org is a site that has collected hundreds of such scripts and is not to be missed.
Continuing the buzz surrounding the new Google Reader, 3rd party Greasemonkey scripts are cropping up that either modify or add much-requested features (like integrating it with Gmail). At the top of this request list (or at least near it) is search - after all, it is a Google product. Unfortunately, the Reader team's own Mihai Parparita has explained in the product's Google Group that search is a bit tricky right now - but they're working on it.
While you wait though, why not add at least some basic search functionality with this Greasemonkey script? Be warned though, as by 'basic' I mean 'it can only search a single feed you're reading, or all blogs across the blogosphere, via Google's Blog Search.' For now, it can't search multiple blogs (a limit of the Blog Search engine itself) or folders of feeds in Reader, but hey - it's a start. On the plus side, the author is open to suggestions if anyone knows of an engine better suited to the task of searching multiple sites at once, so throw your two cents in if you want to make the only Google Reader search that much better.
Anyone who has hand-coded HTML (I know, oldskool) has wished for a tool like this real-time HTML editor, though regrettably the days of hardcore hand-coding HTML are pretty much over. I still code HTML in my free time just for the tactile feel of simple code beneath my fingers and remembering the old day before things got easy. Real-time HTML Editor puts your code into practice as soon as (and somewhat before) you type it. Through the power of AJAX, HTML is now more fun. This tool is obviously not for serious coding, but it can help a noob learn the basics or help you text a small script, such as a MySpace layout or something nonsensical like that. I checked it out for the nostalgic value more than anything, so if that is your brand of suck tape, give it a whirl.
Camera phones are undoubtedly alluring, but even the best of them produce mediocre images. Aaron Straup Cope, unsatisfied with his results, built filtr, a shell script for FreeBSD and OSX that will takes your blah camera phone photos and lets you apply one of seven filters to it: dazd, heathr, postcrd, postr, stndpipe, rockstr, and filtr. There's also movr, which will turn a video file into a series of images, apply one of the above filters to each. All of the results are interesting, universally moreso than your average camera phone pic. It's a shell script, like I said, so if you're not comfy with the command line (and willing to hunt down and install a few dependencies first), filtr may not be the tool for you. You can download filtr for free here.
Mozilla has released a security update to Firefox, version 1.5.0.5. TechWeb is reporting that this update fixes 13 vulnerabilities, including 8 that have been deemed critical by Mozilla. For those keeping score: all 8 of these critical bugs are errors or vulnerabilities that have been found in JavaScript.
Firefox 1.5.x should automatically download this update, but users can still manually obtain a copy from Mozilla's site.
Greased
Lightbox is a nifty Greasemonkey (and Creammonkey for Safari) script by Joe Lencioni that I came across yesterday.
When it finds links to image files, clicking those links causes the image to pop up with the suddenly-popular
"lightbox" effect rather than navigating away from the linking page. Not only is it a cool effect, it makes
browsing image galleries and Google Images a lot smoother. It also has extra support for sites like Flickr, Facebook,
and Gmail, which is a nice bonus. If I were to add anything to Greased Lightbox it would be some kind of slideshow
functionality, but it seems to be under active development so perhaps that's coming.