Using dojo.query & Greasemonkey to skip welcome screens
Posted by Shane O'Sullivan on May 2, 2009
I posted a couple of weeks ago on how I used the Sizzle CSS selector engine in a Greasemonkey script to skip annoying “Welcome Screens”, see it here, or check out the very handy script here. However, there were a couple of issues with using Sizzle:
- On some pages it crashed the browser. Not good.
So, I’ve replaced it with the Dojo standalone library, Acme. Some advantages it has over Sizzle:
- It’s arguably faster
- It doesn’t have to be put outside the Greasemonkey sandbox, so no interfering with the page code.
- It doesn’t crash the browser
You can get the uncompressed version of Acme here – http://archive.dojotoolkit.org/nightly/checkout/dojo/_base/query.js
If you want a compressed version, that works independantly of Dojo, you can compress that file to a single line using the YUI compressor at http://www.refresh-sf.com/yui/