« Home | The nightmare.. » | Safety... a luxury » | Soon! » | Scenic Route » | how GPRS saved my ass today » | POC #2: the office air conditioner » | What a car fuse should NEVER look like » | POC #1: My car » | Laziness » | the shadi series #7: shadi dress code »


Blogger hack: Change blogspot ban bypass proxy automatically to go through inblogs.net

Following the footsteps of Pakistan, India has also banned blogspot after the mumbai bombings. This generated in a lot of cross border blogger sympathy as us pakistanis have known what its like to be blocked.

Being of the nature that we are, Pakistani Bloggers sprang up to help out our indian brothers and sisters, with the knowledge of what we've gained in the last couple of months. This resulted in a new site being opened, called InBlogs.net which allows indian, pakistani and chineese users to bypass the ban on blogspot. It uses the same script as Pkblogs.com.

My previous greasemonkey script for firefox, which automatically changes all links to blogspot to go through pkblogs, was also mentioned and has witnessed increased pageviews. I'll be publishing an update to that soon, which will make blogspot links to go through inblogs.net.

Then, pkblogs.com ran into a problem.. it just wouldnt show images embedded in posts.. and inblogs.net would... so now, we have to change all our links to make them go through inblogs..... a daunting and nearly impossible task. So i came up with a new solution. A blogger hack if you will. This script will check which URL was the blog accessed from, and then automatically make it go through the Inblogs.net site. Pretty neat no?

Here's how u do it. Simply copy paste the following two lines just under the <head> tag on your blog template, change the variable 'cpu_blogname' to your blog's name, save and republish your template. Voila! Now, all your images will be displayed as well and every user (no matter where they came from) will go through Inblogs.net
<script type="text/javascript" src="http://www.geocities.com/mansoor_adenwala/cpu.js"></script>
<script>
  cpu_blogname = 'wordofmansoor';
  changeProxyUrl();
</script>
A note: This script will not work if the blog is accessed through blogspot.com in Pakistan, India or China (and other countries where blocking is enabled). It will work if its accessed through either a)pkblogs.com b)some other anonymizer

This script is open source, and you can use it, share it, modify it as you wish. Let me know how it works out for you.

Sponsored Links

My recent posts on Karachi Metblogs

My comments on other blogs

Powered by:
CoComment

Latest Posts in the Pakistani Blogosphere

Powered by:

Blogs I Read

Get the feed..

Buttons & Such

Creative Commons License

The text of this Blog is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.

Locations of visitors to this page