From Correlation to Causation through stories and math

Correlation and causation are two concepts that people often mixup in their minds. I must admit that I myself have been guilty about this, and it unlikely that I would ever entirely grow out of it as it is wired deeply into our psychology. Let me use this article to briefly emphasise what the concepts of correlation and causation means, some interesting stories that have emerged from people misunderstanding these concepts and an algorithm that attempts to find causal relationship using correlation information. Here is a story that I heard a professor of mine, Prof. Dr. Ernst-Jan Camiel Wit, tell us during a lecture. There was a school that was involved in a study to see if providing free mid-day meals to students, which they could choose to be subscribed to this or not. At the end of the study, both the students who subscribed to it and did not where tested for different health indicators. It was observed that the students who chose to have meals from the programme had poorer health

How to remove Blogger (or any free blogging platform) credits from the footer

I am not sure if removing the footer credits is legal or not, but I just wanted to try doing it. As I searched the internet, I found several pages describing how it could be done by making some adjustments in CSS. However, I could not find an article which uses simple JavaScript commands to do the same. So, I decided the write this.

As you can see now, my footer does have Powered By Blogger credit signature. I am intending on keeping it that way until I am sure that removing it would not get me into any legal issues. I am just writing this article for the educational purposes.

Right click on the Powered By Blogger button and click on Inspect to have Chrome Developer tools loaded with the div that holds the credit content.

You can see that the element should have a content similar to the following. Notice that the div is having a class value blogger. We can use this to our advantage.

<div class="blogger">
<a href="" rel="nofollow">
<svg class="svg-icon-24">
<use xlink:href="/responsive/sprite_v1_6.css.svg#ic_post_blogger_black_24dp" xmlns:xlink=""></use>
Powered by Blogger
As a JavaScript developer, the Console (Tab on the top) would always come in handy. I started trying in the following commands and I confirmed that this could be done.

  • document.getElementsByClassName('blogger')
    This returned an HTMLCollection with just one element in it. This confirms that the 0th element is the signature that we are looking for.
  • document.getElementsByClassName('blogger')[0].style.display = "none"
    As I ran the above command, the credit vanished. So that is what we need.

Now, you can add this JavaScript command in such a way that the command gets loaded after the credit is loaded. Therefore, I decided to put this up in a Gadget. Go to Layout > Add Gadget and click on HTML/JavaScript.

Add the following into the content and save.

document.getElementsByClassName('blogger')[0].style.display = "none";

Now, just refresh your blog and you can observe the Powered By Blogger credit gone. You use the same technique to remove almost all credits from different Blogging service provider, different free website hosting services, etc.


Popular posts from this blog

Started a blog under HexHoot

Bought a new domain -

First impression of Lugano - Mindblowing