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 Bookmarklets

It’s just the summer of bookmarklets this year, isn’t it? This time around, it’s a little something to help you with your immersion:

Google Japan 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?hl=ja&source=hp&q="+encodeURIComponent(s) +"&aq=f&aqi=g10&aql=&oq=&gs_rfai=","_blank")})()

Google Hong Kong 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.com.hk/search?q="+encodeURIComponent(s) +"&hl=zh-TW&prmd=i&source=lnt&tbs=lr:lang_1zh-TW&lr=lang_zh-TW&sa=X&ei=IRRQTIuHOMHXcZyklbEB&ved=0CAgQpwU","_blank")})()

Google Reader Bookmarklet (Courtesy of Google Mania)
Source code:

javascript:(function(){for(i=0;i<document.getElementsByTagName('link').length;i++){if(document.getElementsByTagName('link').item(i).getAttribute('rel').toLowerCase()=='alternate' && (document.getElementsByTagName('link').item(i).getAttribute('type').toLowerCase()=='application/rss+xml' || document.getElementsByTagName('link').item(i).getAttribute('type').toLowerCase()=='text/xml')) { var furl; var fhref=document.getElementsByTagName('link').item(i).getAttribute('href'); if(fhref.indexOf('/')===0) { furl='http://fusion.google.com/add?1&feedurl=' + document.location.href.split('/')[0] + '/' + document.location.href.split('/')[1] + '/' + document.location.href.split('/')[2] + fhref; } else if(fhref.indexOf('http://')===0) {furl='http://fusion.google.com/add?2&feedurl='+fhref; } else { var fhref2=document.location.href.split('/'); fhref2.pop(); furl='http://fusion.google.com/add?3&feedurl='+fhref2.join('/')+'/'+fhref; } document.location.href=furl;} }})();

EOF

Leave a Reply

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