Saturday, September 11, 2010

LITTLE TRICKS

Hopefully my blog will not be taken down. 


Why? because have you noticed that you don't see any of the annoy default sign-in header nor the "power-by" footer anymore? See the attached image below. 





How did I do that? 

Well... since I was allowed to add/modify my blog templates, so I included ExtJS (a powerful JavaScript Library, you can use JQuery or any other decent JavaScript library out there, or skip this step and just do a good ol' getElementByID) from a CDN, used firebug to find out the elements that were responsible for the annoy and useless things, and with a simple element.remove function from ExtJS, then voila! No more contents that I don't approve! 


That's right! This is a totalitarian blog, everything that shows up must be approved by ME and ME only. 


Take that, Google!

It's 3:21am. I guess I am really excited for my blog and I am really awake. 


function removeUselessElement(el){
     if (el.usage === usage.useless){
         Ext.get(el).remove();
     }
}

No comments:

Post a Comment