We’ve shown you how to clean up your messy Ubuntu boot menu before, but if you’d like to avoid manually uninstalling old kernels, this handy bash script will do it all for you. More »
Blog Archives
Quickly Uninstall Old Linux Kernels with a Bash Script [Scripts]
Hide and Show Desktop Icons on OS X with an Automator Service [Video]
We’ve featured a few ways to keep your Windows desktop neat, but if you want to temporarily hide your Mac’s desktop icons, you can do so with a simple AppleScript and Automator. More »
Top 10 Must-Have Browser Extensions [Video]
Your browser of choice may have changed a lot in the past year, but luckily the best extensions for making your browser better have kept up with all the most popular browsers. Here are our cross-platform, must-have favorites. More »
Prevent iTunes from Updating Jailbroken Devices with a Bash Script [Scripts]
One of the big problems with jailbreaking is that iTunes still serves you iOS updates, which, if downloaded and installed, will return your phone to a non-jailbroken state. This bash script prevents iTunes from automatically downloading updates and overwriting your jailbreak. More »
Make Windows Load Your Desktop Before You Log In [Video]
If you like to be able to step away from your computer while your desktop and programs load, but don’t want to enable the autologin feature, this script will begin loading your desktop when the login screen shows up. More »
Control Pretty Much Any Electrical Device with Your Computer [DIY]
We’ve discussed how to automate your home with X10 before, but if you’re unhappy with its limitations and are willing to roll up your sleeves, you can tweak nearly any electrical device to communicate with your computer. More »
![]()
Business – Construction and Maintenance – Electrical – Electronics and Electrical – Electricity
Chrome 4 Supports Greasemonkey Userscripts Without an Extension [Userscripts]
The Greasemonkey extension has long been one of our favorite tools for Firefox, allowing us to bend the web to our will with light and simple scripts written in JavaScript. Now most Greasemonkey scripts work in Chrome, no extension required.
In fact, when you install a userscript in Chrome, it actually installs as though it’s a regular old extension. That means, as the original Greasemonkey developer and Google employee Aaron Boodman points out on the official Chromium Blog, that Chrome users now have roughly 40,000 more extensions to add to the list.
Some scripts won’t work with Chrome just yet because of differences between Firefox and Chrome, but it looks like that number is somewhere around 15-20%. Not bad, Chrome. It’s getting more and more tempting to consider Chrome as a viable Firefox alternative every day.
The improved support for userscripts should work on any Chrome version over 4, which includes the stable version on Windows and both of the beta versions on OS X and Linux. If you'd like to try out a few good userscripts—for Chrome or Firefox—our list of the top 10 Greasemonkey user scripts is a good place to get started.
AutoHotkey AutoInclude Organizes, Consolidates Your AHK Workflow [Autohotkey]
Ed note: We love AutoHotkey around Lifehacker HQ due to its powerful Windows tweaking skills, so we were thrilled when Reader Scott Rippey wrote in with this extremely smart script for managing your AHK scripts.
I’m ashamed to say that this is my first contribution to Lifehacker. I say “ashamed” because I’ve been taking and taking, and I haven’t given anything in return! So I thought it was high-time I contributed my most helpful AutoHotkey script. I call it “AutoInclude”.
There are 2 problems that it solves: first, as an avid reader of Lifehacker, and a huge user of AHK, I come across dozens of GREAT scripts that I want to incorporate into my own “main script”, but it can be quite a hassle combining them all into a single AHK file. Take a look at all these scripts:

Second, I use AHK on my Work PC, my laptop, and my Media Center — and I have different AHK needs for each of these locations, but I still want some AHK code to be shared across the board.
My AutoInclude script scans a list of folders for *.ahk, and creates a temporary AHK file that “#Include“s them all, and then executes the temporary file. It allows me to keep all my scripts VERY organized, allows me to determine which scripts are appropriate for each computer, and lets me edit my scripts very easily! Finally, I put all my AutoHotkey scripts into a Live-Mesh-Synchronized folder and share it across all my PC’s.
On each PC, I modify the top of the file to only include the folders that apply to that system (such as All, XP, and Tablet, versus All, Dual Monitor, and Work) and I comment out the rest:

Finally, when I run the script, I only have a single AHK process running! I love it.
The only thing that is tricky is the fact that “#Include“ing a bunch of files can cause possible issues if the script needs an “Auto-Execute” section. The solution is as follows:
If a script needs to auto-execute, then the first line of the file should be the comment “; Auto-Execute”, followed by the auto-execute code as usual, and there MUST be a “Return” before any other code or hot-keys. The AutoInclude script will put a label in front of the “#Include” statement, and will call a GoSub to that label, thereby auto-executing it!
Take a look at the auto-generated script:

You can download my AutoHotkey AutoInclude script here.
Thanks Scott! Want to get your feet wet with AHK? Take a look at our beginner’s guide to turning any action into a keyboard shortcut with AutoHotkey.
Automatically Open PDFs and PowerPoint Presentations with Google’s Doc Viewer [Downloads]
Most web browsers: Google’s Doc Viewer allows you to view any PDF, PPT, and TIFF directly in your browser without downloading the file and launching another heavy desktop application, and this user script streamlines that process.
After installing the script (which works with Greasemonkey for Firefox and should in theory work with the dev build of Chrome, Opera, Safari with GreaseKit, and IE with IE7Pro), it will convert any link pointing directly to a download of PDF, PPT, and TIFF files to a link to view those files in the Google Doc Viewer. If the idea sounds familiar, we highlighted a bookmarklet that could do the same thing on a case-by-case basis, but this user script will do the trick every time.
Selectively Block Flash Animations in Google Chrome [Annoyances]
Firefox users have Flashblock and other extensions to cut down on memory-hogging, browser-destabilizing Flash animations thrown haphazardly around the web. If you’re a Google Chrome convert, BlockFlash2 can offer much the same protection against random moving objects.
At the How-To Geek’s home away from Lifehacker, Lifehacker intern alumnus Asian Angel details how to install, activate, and use the BlockFlash2 user script to replace Adobe Flash elements on a page with yellowed links. Those links can be clicked if the Flash element turns out to be important—like, say, on a YouTube page—or left to sit and never auto-play for faster, less crash-y browsing.
Got another Chrome-friendly script (besides the previously mentioned AdSweep) that streamlines the web? Tell us about it in the comments.





