This blog post was brought to you by the generosity of AJATT's patrons!

If you would like to support the continuing production of AJATT content, please consider making a monthly donation through Patreon.

Right there ↑ . Go on. Click on it. Patrons get goodies like early access to content (days, weeks, months and even YEARS before everyone else), mutlimedia stuff and other goodies!


Google Japan Search Bookmarklet

I’ve put up one of these before, but this time I edited it so that by default it only searches Japanese pages. This should be the extra little environmental nudge you need to get more Japanese into your web life.

| Google Japan Search Bookmarklet

Source Code:
javascript:(function(){var w=window,d=w.document,s="";;if(d.selection){s=d.selection.createRange().text}else if (d.getSelection){s=d.getSelection()}else if(w.getSelection){s=window.getSelection()}window.open ("http://www.google.co.jp/search?q="+encodeURIComponent(s) +"&hl=ja&prmd=ivns&source=lnt&tbs=lr:lang_1ja&lr=lang_ja","_blank")})()

  3 comments for “Google Japan Search Bookmarklet

  1. Jorge
    April 24, 2012 at 04:12

    ありがとう。。

  2. Kimchi
    August 14, 2012 at 11:23

    And where does one copy paste that code for it to do the job it was made for?

    • December 9, 2012 at 18:57

      Here’s how this works in Google Chrome:

      Click and drag the link onto the bookmarks bar.(Only the link is dragged. Do not select it first.)
      Select text (probably Japanese) on a web page.
      Click on the new bookmark.
      You get a search results page based on that term.

      The code takes the selected text, turns it into a search query, and sends you to Google for the results, filtered so that it’s only in Japanese.

      I’m guessing something similar works in other browsers… I hope that works out for you.

Leave a Reply

Your email address will not be published. Required fields are marked *