pimg src=”http://cache.gawker.com/assets/images/lifehacker/2008/10/chrome_incognito.jpg” height=”87″ width=”142″ align=”right” hspace=”4″ vspace=”2″ align=”right”/Programmer Michael T. Bee offers up a small, desktop-friendly JavaScript file that starts Google’s Chrome browser in Incognito Mode for those privacy-please browsing sessions. Actually, the script, which you can paste into Notepad or another editor and save as a .js file, starts Chrome, opens a no-cookie, no-tracks-left Incognito window, then kills the first window. If your system can’t launch Chrome by running codechrome.exe/code in Windows’ “Run” dialog, you might have to tweak the sixth line of the script a bit. Otherwise, it’s a handy trick for, as the Hacks Blog puts it, “birthday shopping.” div class=”related”a href=”http://michael-t-bee-esi.blogspot.com/2008/10/chromeincognitojs.html”Chrome_Incognito.js/a [Michael T. Bee's ESI via a href="http://www.hackszine.com/blog/archive/2008/10/start_chrome_in_incognito_mode.html"Hacks Blog/a]/div/p br style=”clear: both;”/
img alt=”" style=”border: 0; height:1px; width:1px;” border=”0″ src=”http://www.pheedo.com/img.phdo?i=012870786bd93c9d74ac4dc358f04f05″ height=”1″ width=”1″/
img src=”http://www.pheedo.com/feeds/tracker.php?i=012870786bd93c9d74ac4dc358f04f05″ style=”display: none;” border=”0″ height=”1″ width=”1″ alt=”"/
pa href=”http://feeds.gawker.com/~a/lifehacker/full?a=AkMKvR”img src=”http://feeds.gawker.com/~a/lifehacker/full?i=AkMKvR” border=”0″/img/a/pdiv class=”feedflare”
a href=”http://feeds.gawker.com/~f/lifehacker/full?a=rMxiM”img src=”http://feeds.gawker.com/~f/lifehacker/full?i=rMxiM” border=”0″/img/a a href=”http://feeds.gawker.com/~f/lifehacker/full?a=EiJsM”img src=”http://feeds.gawker.com/~f/lifehacker/full?i=EiJsM” border=”0″/img/a a href=”http://feeds.gawker.com/~f/lifehacker/full?a=ZcjNm”img src=”http://feeds.gawker.com/~f/lifehacker/full?i=ZcjNm” border=”0″/img/a a href=”http://feeds.gawker.com/~f/lifehacker/full?a=DFWOm”img src=”http://feeds.gawker.com/~f/lifehacker/full?i=DFWOm” border=”0″/img/a
/divimg src=”http://feeds.gawker.com/~r/lifehacker/full/~4/434698329″ height=”1″ width=”1″/
Posts Tagged ‘ script ’
Start Google Chrome in Incognito Mode [Google Chrome] 28 October 2008 at 7:30 am by admin
+ Gmail Labs Adds Google Calendar, Other Gadgets to Sidebar [Gmail Labs] By admin 28 October 2008 at 7:05 am and have No Comments
pimg src=”http://cache.gawker.com/assets/images/lifehacker/2008/10/gcal_gmail.jpg” height=”150″ width=”179″ /Gmail has added support for sidebar gadgets to its experimental Labs section, allowing users to add an agenda view of Google Calendar, a short list of recent Google Docs files, and any web-based gadgets using a href=”http://incubator.apache.org/shindig/#tab-home”Apache’s Shindig standard/a to the left-hand sidebar. As the developers themselves note, adding outside gadgets isn’t exactly user-friendly, but then again, adding too many gadgets could lead to some page-loading slowdown. You can enable the GCal, Docs, and external gadget support in the beaker-icon Labs menu of Gmail. While you’re in there, here’s a few ways to make Gmail gadgets more convenient./p pullistrongMove Labels and Chat to the right-hand side:/strong Enable the “Right-side labels” and “Right-side chat” features in the Labs section to move those sometimes lengthy boxes over and make room for your new gadgets./lilistrongManually re-order your left sidebar:/strong Turn on “Navbar drag and drop” in Labs, and you can drag any of your widgets up and down in your left-hand sidebar. Combined with the right-side options above, you can place your gadgets pretty much anywhere you’d like. You’ll likely want to turn off this feature when you’re done, though, both for JavaScript speed and to prevent accidental re-ordering./lilistrongTurn off secure (https) access, if needed:/strong The developers say that some external widgets might not work so hot if you’re accessing Gmail through a secure connection, the kind that puts httpstrongs/strong: in your address bar. That might be a deal-breaker for some, but Google’s own widgets seemed to work fine in our own test./lilistrongFind and share your Shindig gadgets:/strong Enable “Add any gadget by URL” in Labs, and your Settings section gets a new “Gadgets” header with a simple URL entry box. Google has only shared one that definitely worksmdash;a version of their YouTube scroller, available by pasting in codehttp://www.google.com/ig/modules/youtube_videos.xml/codemdash;but says you can add more by “pasting in the URL of (a gadget’s) XML spec file.” Any of our readers savvy with extensible markup language are welcome to post their own gadget findings in the comments./li/ul/p div class=”related”a href=”http://gmailblog.blogspot.com/2008/10/new-in-labs-calendar-and-docs-gadgets.html”New in Labs: Calendar and Docs gadgets/a [Official Gmail Blog]/div br style=”clear: both;”/
img alt=”" style=”border: 0; height:1px; width:1px;” border=”0″ src=”http://www.pheedo.com/img.phdo?i=413515c0ba4596611a837ebcc145e377″ height=”1″ width=”1″/
img src=”http://www.pheedo.com/feeds/tracker.php?i=413515c0ba4596611a837ebcc145e377″ style=”display: none;” border=”0″ height=”1″ width=”1″ alt=”"/
pa href=”http://feeds.gawker.com/~a/lifehacker/full?a=IPVHjK”img src=”http://feeds.gawker.com/~a/lifehacker/full?i=IPVHjK” border=”0″/img/a/pdiv class=”feedflare”
a href=”http://feeds.gawker.com/~f/lifehacker/full?a=LHAaM”img src=”http://feeds.gawker.com/~f/lifehacker/full?i=LHAaM” border=”0″/img/a a href=”http://feeds.gawker.com/~f/lifehacker/full?a=fkQ7M”img src=”http://feeds.gawker.com/~f/lifehacker/full?i=fkQ7M” border=”0″/img/a a href=”http://feeds.gawker.com/~f/lifehacker/full?a=f6xgm”img src=”http://feeds.gawker.com/~f/lifehacker/full?i=f6xgm” border=”0″/img/a a href=”http://feeds.gawker.com/~f/lifehacker/full?a=QI4Zm”img src=”http://feeds.gawker.com/~f/lifehacker/full?i=QI4Zm” border=”0″/img/a
/divimg src=”http://feeds.gawker.com/~r/lifehacker/full/~4/434658156″ height=”1″ width=”1″/
+ Set Up Universal Ad Blocking Through Your Router [Step By Step] By admin 07 October 2008 at 6:15 pm and have No Comments
If you’ve turned your $60 router into a user-friendly super-router with open-source firmware Tomato, you already know that Tomato can boost your Wi-Fi signal, track bandwidth usage, and set Quality of Service rules with ease. But if you’re a big fan of Adblock Plus—the most popular Firefox extension among Lifehacker readers—you can save yourself an extension installation and universally block ads across your entire home network by adding a custom script to your Tomato firmware. Here’s how it works:
There are several ad-blocking scripts available that could work, but the one I’m using comes from this forum post. Thanks Tad!
Installation
1. Open the Tomato Admin Scripts interface
You’ll need to login with the user name and password you set in our instructions for installing Tomato. Once you’re logged in, make sure to click on the WAN Up tab.
2. Copy the ad-block script to Tomato
I’d recommend going directly to the source, since the author of the script updates it regularly in the top post. As of this writing, the script looks like this:
## Adblock script [Version 2.1 | 08 July 2008 | 3778 bytes]
##
## Created by Adrian Jon Kriel: root-AT-extremecooling-DOT-org
##
## tomato WAN Up script
##
## 0 = disable
## 1 = enable
## (1) = default value
## optimising of dnsmasq, (1)
eval OPTDNSMASQ=”1″
## automatic updating, (1)
eval AUTOUPDATE=”1″
## MVPS HOSTS ~18,500 lines, 680 Kbyte, (1)
eval MVPSSOURCE=”1″
## pgl.yoyo.org ~2,200 lines, 68 Kbyte, (1)
eval PGLSOURCE=”1″
## hosts-file.net ~53,000 lines, 1.5 Mbyte, (0)
eval HSFSOURCE=”0″
## Hosts File Project ~102,000 lines, 3.0 Mbyte ***6+mb free memory***, (0)
eval HFPSOURCE=”0″
##
## varibles
## location of temp file, (/tmp/hosts)
eval GENFILE=”/tmp/hosts”
## redirect ip, (0.0.0.0)
eval REDIRECTIP=”0.0.0.0″
## sources
eval MVPSOURCEFILE=”http://www.mvps.org/winhelp2002/hosts.txt”
eval PGLSOURCEFILE=”http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts”
eval HSFSOURCEFILE=”http://www.it-mate.co.uk/downloads/hosts.txt”
eval HFPSOURCEFILE=”http://hostsfile.mine.nu/Hosts”
if ping -c 1 yahoo.com ; then
eval GOTSOURCE=”0″
echo “” > $GENFILE
## download
if [ "$MVPSSOURCE" = "1" ] ; then
if wget $MVPSOURCEFILE -O – >> $GENFILE ; then
logger ADBLOCK Downloaded $MVPSOURCEFILE
eval GOTSOURCE=”1″
else
logger ADBLOCK Failed $MVPSOURCEFILE
fi
fi
if [ "$PGLSOURCE" = "1" ] ; then
if wget $PGLSOURCEFILE -O – >> $GENFILE ; then
logger ADBLOCK Load $PGLSOURCEFILE
eval GOTSOURCE=”1″
else
logger ADBLOCK Fail $PGLSOURCEFILE
fi
fi
if [ "$HSFSOURCE" = "1" ] ; then
if wget $HSFSOURCEFILE -O – >> $GENFILE ; then
logger ADBLOCK load $HSFSOURCEFILE
eval GOTSOURCE=”1″
else
logger ADBLOCK Fail $HSFSOURCEFILE
fi
fi
if [ "$HFPSOURCE" = "1" ] ; then
if wget $HFPSOURCEFILE -O – >> $GENFILE ; then
logger ADBLOCK Load $HFPSOURCEFILE
eval GOTSOURCE=”1″
else
logger ADBLOCK Fail $HFPSOURCEFILE
fi
fi
if [ "$GOTSOURCE" = "1" ]; then
logger ADBLOCK Got Source Files
#FREE MEMORY!
service dnsmasq stop
killall -9 dnsmasq
logger ADBLOCK Ignor Fail Safe
##strip source file
sed -i -e ‘/^[0-9A-Za-z]/!d’ $GENFILE
sed -i -e ‘/%/d’ $GENFILE
sed -i -e ‘s/[[:cntrl:][:blank:]]//g’ $GENFILE
sed -i -e ‘s/^[ t]*//;s/[ t]*$//’ $GENFILE
## dnsmasq, sanitize, optimised
sed -i -e ‘s/[[:space:]]*[.*$//' $GENFILE
sed -i -e 's/[[:space:]]*].*$//’ $GENFILE
sed -i -e ‘/[[:space:]]*#.*$/ s/[[:space:]]*#.*$//’ $GENFILE
sed -i -e ‘/^$/d’ $GENFILE
sed -i -e ‘/127.0.0.1/ s/127.0.0.1//’ $GENFILE
sed -i -e ‘/^www[0-9]./ s/^www[0-9].//’ $GENFILE
sed -i -e ‘/^www./ s/^www.//’ $GENFILE
## remove duplicates (resource friendly)
cat $GENFILE | sort -u > $GENFILE.new
mv $GENFILE.new $GENFILE
## format
sed -i -e ‘s|$|/’$REDIRECTIP’|’ $GENFILE
sed -i -e ‘s|^|address=/|’ $GENFILE
## load values from dnsmasq config
cat /etc/dnsmasq.conf >> $GENFILE
## optimise dnsmasq
if [ "$OPTDNSMASQ" = "1" ] ; then
cat >> $GENFILE <<EOF
cache-size=2048
log-async=5
EOF
fi
## remove/whitelist websites
## removes 3 websites (aa.com, bb.com, cc.com)
## remove the # and edit the website urls.
sed -i -e ‘/aa.com/d’ $GENFILE
sed -i -e ‘/bb.com/d’ $GENFILE
sed -i -e ‘/cc.com/d’ $GENFILE
## apply blacklist
dnsmasq —conf-file=$GENFILE
## failsafe added
dnsmasq
logger ADBLOCK Ignor Fail Safe
## dev info
logger ADBLOCK Unique Hosts Blocked $(awk ‘END { print NR }’ $GENFILE)
else
logger ADBLOCK Error Not Downloaded
fi
else
logger ADBLOCK Error No Internet
fi
## remove the generated files
rm $GENFILE*
## automatic update
if [ "$AUTOUPDATE" = "1" ] ; then
## script exists
if [ -x /tmp/script_wanup.sh ] ; then
cru a UpdateAdlist “0 6,12,18,0 * * * /tmp/script_wanup.sh >/dev/null 2>&1″
fi
fi
## the end
You should paste the script into the blank text area in the WAN Up tab we navigated to above.
3. Save the script by clicking the Save button.

4. Reboot your router to enable the script.

That’s all there is to it. Next time you visit a web site, you should notice a conspicuous lack of ads. The same should be true from any computer, as long as its connected to your Tomato router.
There are some unfortunate bits and pieces about this method versus the Adblock extension that you might want to take into consideration before setting it up on your router. First, if you want to whitelist a site, you have to manually edit the script by changing the following section:
## removes 3 websites (aa.com, bb.com, cc.com)
## remove the # and edit the website urls.
sed -i -e ‘/aa.com/d’ $GENFILE
…replacing aa.com with the site you wanted to whitelist. Keep in mind that whitelisting does not work for whitelisting all ads on a specific site—instead, if you’re having trouble opening a site you want to look at because it’s on a blacklist, whitelisting that site will let you access that one specific site. As someone who makes a living writing for an ad-supported web site, I normally encourage people to allow ads on sites they care about. Unfortunately the script doesn’t allow you to whitelist all ads on specific sites. (It may be possible, though, so if you know how to go about doing so, I’d love to hear it in the comments!)
I am aware that many of you rely on ad-blocking scripts or extensions to speed up your slow internet, (in fact, we’ve recommended that you do as much to survive a slow internet connection), and others of you just hate dealing with the eyesore that flashy ads can cause.
So while I still heartily encourage supporting sites you frequent, this simple script makes setting up a universal ad-block on your home network a breeze. If you’ve used a similar method to block ads across your network, let’s hear about it in the comments.
+ Make Ubiquity More Ubiquitous [Featured Windows Download] By admin 07 October 2008 at 11:00 am and have No Comments
Software engineer and Lifehacker reader William Bartholomew loves previously mentioned Firefox extension Ubiquity, but would prefer it were a bit more… well, ubiquitous.
One of the biggest limitations I see is that its keyboard shortcut is only available from within Firefox; I really want to be able to invoke it from whatever application I’m currently using.
To address this issue, Bartholomew created a small program that creates a global shortcut that invokes Ubiquity no matter what application you’re using. It’s all written in a few lines of AutoHotkey, so keep reading for a closer look at the code, a link to download the executable, and a reminder of exactly what Ubiquity brings to your Firefox installation.
First, if you need a quick refresher on what Ubiquity can do for you, check out the screencast below:
In addition to the features shown in the video above, Ubiquity has also seen integration with popular to-do list manager Remember the Milk. Now let’s take a look at how the AutoHotkey script works. (If you’re not interested in the code, just grab the download here and be on your way.)
Now let’s take a look at the code:
#space:: ; Change shortcut if needed
FirefoxTitle = Mozilla Firefox
FirefoxPath = Mozilla Firefoxfirefox.exe
SetTitleMatchMode, 2
IfWinNotExist,
{
Run
}
WinActivate,
WinWaitActive,
Send, ^{Space} ; Change shortcut if needed
return
As you can see, this works very similarly to TabsLock, the application that switches to or opens Chrome or Firefox whenever you tap you Caps Lock key. The difference: Instead of opening a new tab once Firefox is active, this script invokes Ubiquity.
If you wanted to change your keyboard shortcuts—whether you’ve set a different shortcut to invoke Ubiquity from Firefox or you’d prefer a different gloabl shortcut—you can do that directly in the script.
+ BrakeNutz Glowing Car Testicles are the Epitome of White Trash in the 21st Century [Terrible Ideas] By admin 06 October 2008 at 8:30 pm and have No Comments
Wow. Just wow. Call me a cultural elitist, but who considers it socially acceptable to hang a glowing pair of balls from your rear bumper? I don’t care if they’re connected to your brake lighting, they’re just wrong. I never thought it possible for LEDs to be horrifically misappropriated, but BrakeNutz just rewrote the script on that. Check out the video over on Jalopnik. [BrakeNutz via Jalopnik]
RSS