Went into the University for the first time

I went into the university for the first time today. It is less than a kilometer from the apartment. I had to go there to finalize certain documents regarding my accomodation. I arrived at the university during the lunch time and hence I had to wait for a couple of hours for the office staffs to return. During the time, I roamed around the campus. The place is aesthetically pleasing, however, it is pretty small, especially since where I did my bachelor's, IIT Patna, had a campus spread across over 500 acres. I also went to the nearby Lidl to get a few frozen pizzas. I had that for lunch, evening snack and dinner. I had thought about cooking something for dinner, but I felt a bit lazy to do the same. However, I did modify the last frozen pizza by adding some mushrooms, pizza sauce and pepper. I think this could be a good trick moving forward - buy a few frozen pizzas and chopped vegetables from Lidl and fuse them. I think this would make the pizzas a bit more healthier and the effor

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="https://www.blogger.com" rel="nofollow">
<svg class="svg-icon-24">
<use xlink:href="/responsive/sprite_v1_6.css.svg#ic_post_blogger_black_24dp" xmlns:xlink="http://www.w3.org/1999/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

Regarding a Covid-19 related project that I worked on a few months ago

Went into the University for the first time

Preparing my journey to Switzerland