Archive

Posts Tagged ‘google’

JavaScript I Find Useful

March 16th, 2009 Bugman 1 comment

Sorry non-geek readers, but I am compelled to write a geeky post. Now that the weather has improved I shall be out and hopefully post a bit more about my days!

I use Safari 4.0 Beta on my Mac, and I’ve been using three useful JavaScript Bookmarks (though one more than the others.) So in order of preference, here are three interesting bookmarks that you should consider adding to your own Bookmarks toolbar. They’re similar in effect to GreaseMonkey scripts but suit me better because they apply to any page and can be clicked on at your preference.

1. Readability

Readability is a script that transforms a cluttered web page into something actually readable. You’ll know what I’m talking about when you visit a news service that has a thousand ads, side bars, menus and all sorts of other links cluttering your screen, when all you really want to read is the main content. Just like the old Internet!

In steps Readability. In one magic click of a button (or menu-item, depending on your way of looking at it) your page is transformed; the clutter is gone and all that remains is the main article you wanted to read in the first place. If you want to go back to the original page, just click reload.

Readability is customisable so the pages you choose can be output to a few different styles of your preference.

Here’s a before-and-after shot as one example of an article I clicked on today:

Before Readability

And after:

After Readability

The transformation is very cool! You can go to the Readability website here, and there are links and instructions on how to add it to your browser.

2. Google Translate on-the-fly

Here’s all it is:

javascript:void(location.href='http://translate.google.com/translate?u='+location.href)

and this script will pipe your page through Google Translate as quick as that!

Bookmark it here. You probably won’t use it too often unless you visit any foreign websites, but on the occasions that you do you’ll be glad you’ve got your quick and easy link! Do you need some news in French?

3. Subscribe…

A little superfluous considering most modern browsers auto-detect RSS, but it can’t hurt, but this little script finds any RSS Feed within a page and takes you to it in Google Reader. Unless you’re using a third party RSS utility like Reader Notifier (also quite useful) then this will be of some use.

Here’s the code:

javascript:var%20b=document.body;
var%20GR________bookmarklet_domain='http://www.google.com';if(b&&!document.xmlVersion){void(z=document.createElement('script'));
void(z.src='http://www.google.com/reader/ui/subscribe-bookmarklet.js');
void(b.appendChild(z));
}else{location='http://www.google.com/reader/view/feed/'+encodeURIComponent(location.href)}

And a bookmarkable link.

I hope you enjoyed this little venture and I hope you can take away at least something useful! If you have any other ideas or suggestions feel free to comment and tell everyone. If I’ve helped anyone by posting this information then please comment and let me know!

And finally… go and check out Cool Iris. Yes, it does seem to be “professional software” but for the moment it’s apparently free. I usually don’t bend for these sorts of plugin things but I tried this one and it really is quite good. It’s a full-screen interactive media plugin for your browser and is extremely useful for Google Images, Flickr, sometimes Facebook and probably several other media sites. It’s pretty snazzy. Check the website out and you’ll see what I mean.

Use Firefox Style Bookmark Keyword Searches in Safari

February 16th, 2008 Bugman 1 comment

Web browsing is something most web users do very, very often. The Internet is an immense tool full of all sorts of data, instantly available at your fingertips. I frequently use websites such as Wikipedia, YouTube, Flickr, Google, Discogs and more, all to quickly search for images, videos and information. It’s slow and cumbersome to have to load up each of these websites in order to just perform a search, so the best way to improve your overall web experience is to treat your web browser more like a search tool.

Firefox and Opera both have a built-in feature in which you can use keyword shortcuts to quickly search specific websites for information. When I was working for an ISP in Australia I found this extremely useful, not only just for searching for information on the web, but also for quickly searching for things on our Intranet and various in-house troubleshooting tools. In a moment’s notice I could have whatever information I needed up on screen without having to navigate to the Intranet, click on the tool, enter the information, submit and wait for the results. With one keyword I could have instant access to the results.

Consider a tool as powerful as Wikipedia, where you can search for just about anything or anyone and be presented with (mostly!) accurate information about that item. If you wanted to look up steganography for instance, most web users would do something like:

1. Click on the Wikipedia Bookmark
2. Wait for it to load
3. Use mouse to navigate to the Search box
4. Enter the word ’steganography’ into the search box
5. Click search or hit enter

Consider that with steps 1-4, you don’t really want to visit the Wikipedia front page; you only want to use its search features but in order to use them you had to visit the Wikipedia page first. It’s cumbersome, slow and annoying!

Imagine if you could access those websites with the following sequence instead:

1. Hit -L (to get to the location bar)
2. Type ‘wp steganography’
3. Hit enter.

You avoid having to go through the website’s front door and can go in straight to the results you want. It saves you so much time and you can use it on any website with a search box. You also don’t have to use any mouse clicks!

In order to take advantage of this on Safari, you need a plugin called Keywurl. It’s a bit irritating to install but once it’s done it will work like a charm.

To install and set up, do the following:

A: Download and install Keywurl

1. Download Keywurl
2. Open up the contents of the DMG file in Finder
3. Double-click the SIMBL package and follow the instructions to install

B: Create the Plugins Directory manually

4. Load up a new Finder window (press -n)
5. Navigate to: HOME/Library/Application Support
6. Create a new directory called ‘SIMBL‘ and navigate into it
7. Create a new directory (beneath SIMBL) called Plugins

C: Copy the Keywurl Plugin

8. Go to your Finder window containing the Keywurl files
9. Go into either the Leopard or Tiger directory, depending on which release of OS X you’re running.
10. Drag the Keywurl.bundle file into the SIMBL/Plugins directory you just created
11. Restart Safari and launch it

If you check your Safari preferences, Keywurl should now be installed!

Keywurl comes with a set of default keyword searches which you can add/modify/delete at your leisure. Try one out. Go to a Safari window’s location bar and type ‘imdb Jumper’ and it should take you to the IMDB.com results page for the search ‘Jumper’. It will work with multiple words of course, such as ‘imdb The Brady Bunch’.

HOW DOES IT WORK?

It’s pretty easy. If you do a Google search, you might notice that your URL will always look something like this:

http://www.google.com/search?hl=en&q=Safari&btnG=Google+Search&meta=

The part after q= is the interesting bit, because that’s what we’ve searched for. If you look at almost any other search results you will see something similar. All you need to do is create a new Keyword URL in the Keywurl preferences, give it a shortcut name, put in the URL just like the one above and then replace the keyword “Safari” with “@@@” which is what tells the script where to put the search string. In keywurl your Google search URL would look like this:

http://www.google.com/search?hl=en&q=@@@&btnG=Google+Search&meta=

You add these searches into Keywurl in Safari’s preferences, and the searches are stored in a file called Home/Library/Application Support/Keywurl/Keywords.plist so be sure to back that up.

Personally, I have shortened keywords and have added some more of my own. Here’s a list of the ones I use:


amazon http://www.amazon.com/exec/obidos/search-handle-url/index%3Dblended%26field-keywords%3D@@@
asx http://finance.google.com/finance?q=ASX:@@@
do http://www.discogs.com/search?type=all&q=@@@
ebay http://search.ebay.co.uk/search/search.dll?from=R40&_trksid=m37&satitle=@@@
ep http://www.google.com/search?hl=en&q=site%3Aepguides.com%20@@@&btnG=Google+Search&btnI=745
flickr http://flickr.com/photos/tags/@@@
gg http://www.google.com/search?hl=en&q=@@@
ggi http://images.google.com/images?q=@@@
imdb http://imdb.com/find?s=all&q=@@@
map http://maps.google.com/maps?oi=map&q=@@@
mini http://www.mininova.org/search/?search=@@@
news http://news.google.co.uk/news?hl=en&ned=&q=@@@
thesaurus http://thesaurus.reference.com/search?q=@@@
tla http://www.thefreedictionary.com/_/search.aspx?tab=32&charset=iso-8859-1&SearchBy=0&Word=@@@&TFDBy=0
wp http://en.wikipedia.org/wiki/Special:Search?search=@@@&go=Go
yt http://youtube.com/results?search_query=@@@

You can download my file and copy it if you wish.

To add one, just search for something on a website and copy the URL to the clipboard. Go into Keywurl and click the + button, type the keyword, press tab, and paste the URL. Replace the keyword you searched for with ‘@@@’. Make sure that if you’ve searched for something with two words, it will get replaced with ‘coca+cola’ or ‘coca%20cola’. You will need to replace that entire string with ‘@@@’.

GOTCHA’S

Watch out for some clever sites like Wikipedia which will always take you to the results page if there is only one hit. Search for something like ‘Japan’ in Wikipedia and you’ll be taken straight to the page on Japan. To find the URL, the trick is to search for something that it most likely won’t match and it will send you to a results page. Here you can grab that special URL. An example on Wikipedia is searching for something like ‘gadeo‘ which is a word I made up and so no page should exist.

TRICKS

Some sites don’t have their own search engines, so consider using Google to search them instead. For epguides.com for instance, go to Google and search for “site:epguides.com Frasier”. The URL you get is:

http://www.google.co.uk/search?hl=en&safe=off&q=site%3Aepguides.com+Frasier&btnG=Search&meta=

The magic for turning that into an “I’m Feeling Lucky” search is to add ‘&btnI=745′ to the end of the query, turning it into:

http://www.google.co.uk/search?hl=en&safe=off&q=site%3Aepguides.com+Frasier&btnG=Search&meta=&btnI=745

Have fun! Please remember to post your comments below about your experience with Keywurl, as well as any useful website you’ve made search shortcuts for!

Categories: Apple, Tech Tags: , , , , ,

Egosearch Results Are Tagifying!

December 29th, 2007 Bugman No comments

Ever done an ego search? That is, searching for your own name in Google or some other search engine to see what comes up about yourself. I was doing this tonight. I googled ‘bugmancx‘ which is a username that only ever applies to me. It’s great, though. It shows up my YouTube, Flickr, Twitter, etc all in the top results. But if you continue down those results you start seeing some really weird stuff.

It all revolves around the concept of tags. To sum it up basically a ‘tag’ means the keywords you apply to any video you upload to YouTube or image that you upload to flickr so that people typing in something like ‘eiffel tower’ can find your image of the eiffel tower. It seems that in order to draw people in, websites are making use of this tagging technology by using the tags of successful websites like Flickr and YouTube. Before I even reached the end of page one of ‘bugmancx’ I’d come across websites like www.adelaideindex.com and www.gnosh.org which all trawl the web looking for content to re-display.

Re-display? Well these websites are using the tags to re-display content from the internet that already exists elsewhere. For instance, the gnosh.org site basically picks up on Flickr tags as well as many other image sites and shows you the results in one page. While this might be handy it means that every time I upload new photos to my Flickr profile they’re appearing in Google results on varying sites all over the web.

I suppose this is a smart way to re-engineer and make money from things that already exist on the Internet without breaching any terms and conditions and without having to do any actual work. I did feel quite some annoyance when I started seeing my YouTube videos being displayed on websites using the YouTube HTML include functions and being surrounded by Ads. A few of my videos are even featured on ‘AOL Videos.’ I put those videos up on YouTube for my own entertainment and enjoyment, and not so they could be plastered all over the web for other people’s financial gratification!

Look out people! It’s true when they say that once you upload something to the Internet it’s up there forever :)

Categories: Tech Tags: , , , , ,