Saket Jajodia

Tecko Blog..!!

Follow me on Twitter @

BlogSpot Blog Readers Can Use Bookmarklet To Stop Blogger Blog To Redirect To Local ccTLD

If you are a blogger or follow many blog via RSS feed then most of you must be following some blogs which are hosted on Blogger.com and using BlogSpot subdomain. So must knew about the changes that Google made couple of months back that, if you visited example.blogspot.com from India (or using Indian IP address) then you will get redirected to example.blogspot.in.

BlogSpot.In

Or if you have made many bookmark of useful URLs of blog and articles, in which most of those bookmarks of blogs and articles are hosted on Blogger.com blog and uses BlogSpot subdomain then it may happen that you again visit any of those blog or article which you have already bookmarked but at the time of visit it you don’t remember that you have already bookmarked it in your web browser, as your web browser will also not able to notify you because that domain will get redirected to your local (domain name extension) ccTLD and most probably you must have bookmarked that article in .com TLD not in any local ccTLD.

So couple of weeks back in March end I have posted an article on how you can prevent your blog from getting redirected to local domain (ccTLD) but it is for those are for blog owner hosted on Blogger.com but whats about readers, when they visit any blogs, which don’t use any such trick to stop redirection to ccTLD then readers has to manually add /ncr every time they visit a Blogger.com blog, if they want to bookmark it or want to check if it is already bookmarked or not.

But now they don’t have to, here is the solution, I have made a bookmarklet above, all you need to do is just drag and drop it into your bookmark bar of your web browser and then whenever you visit a blog which are hosted on Blogger.com and gets redirected to ccTLD, at time simply click on that bookmark and that blog will again get back redirected to *.blogspot.com subdomain.

Here is the JavaScript code used in that bookmarklet, if you want you can also use this JavaScript code to execute in a different ways from your web browser.

var dom = document.location.hostname;
var path = document.location.pathname;
var dot = dom.split('.');
var ex = dot[2];
var ex2 = dot[3];
if (ex != 'com' || ex2 != null){
var name = dot[0] + '.blogspot.com/ncr';
window.location.replace('http://' + name + path);}

Reply

Please use your original name while commenting, Thank you..!!








Designed by Blogger Templates and Blog and Web