Monday, January 19, 2009

Remove gmail Sponsored link in firefox3

under ubuntu8.10, goto user profile directory and create dir "chrome" if "chrome" is not exists.
$> cd ~/.mozilla/firefox/user*profile.default/chrome
$> vi userContent.css

/*
* For remove gmail ad links
*/
.eWTfhb div[class="XoqCub"][style="width: 225px;"]{
height:0px!important;overflow:hidden!important;width:0px!important;
}
.tELAdc div[class="XoqCub"][style="width: 225px;"]{
height:0px!important;overflow:hidden!important;width:0px!important;
}
div.qWFFaf {
display:none!important;
}
restart firefox.
in other OS, userContent.css may in below path:
Windows 2000/XP
C:\Documents and Settings\[USER]\Application Data\Mozilla\Firefox\Profiles\*.default\chrome\
Mac OS X
~/Library/Application Support/Firefox/Profiles/[profile-name]/chrome/

3 comments :

Marvin said...

Thanks a lot

Ken Blakely said...

That's a great script: works perfectly. Curious: what are the constructs "qWFFaf" and "eWTfhb"? At first, I thought you were setting up some kinda variable, but I'm not seeing it. What are those?

俞 伟军 said...

"qWFFaf" and "eWTfhb" is gmail element's css class name.