/* Show the useful links (New window, Print all, etc.) in a row */ table[class="PwUwPb XoqCub MMcQxe"] td[class="eWTfhb"]>div[class="XoqCub"] { width: 98% !important; position: absolute !important; text-align: center !important; right: 0 !important; } table[class="PwUwPb XoqCub MMcQxe"] td[class="eWTfhb"]>div[class="XoqCub"] div { display: inline !important; } table[class="PwUwPb XoqCub MMcQxe"] td[class="eWTfhb"]>div[class="XoqCub"] span img { margin-left: 1em !important; }
This happens whenever the ads are hidden, i.e. whne this is not commented out: /* Block the ads table in the message window */ td[class="eWTfhb"]>div[class="XoqCub"]>div[class="XoqCub"]:last-child { display: none !important; }
EDIT: Hey, I got it to work! I used FF's Web developer extension to view the embedded CSS used by google. I looked at the .g class. In the code for this userstyle, the class is referenced as div.g (i.e., "g" as a class of the ID "div"). In google, it's just .g. So, I just changed the div.g references in this userstyle to .g and voila! So:
I'm glad to see parts of my code in yours :) Only together we can make the world a little bit better i think. I all my code is open for everyone to use, so ... *handshake* We rock the web, together!
If you are interested, I have followed your example. I have changed my Google: no ads and new style. I have made some little improvement for ad-blocking (more specific than before) and Google preview extension compatibility (a code more flexible than "min-height: 85px !important;"). I have also made the script more specific, it only applied to Google search page results and no more to other pages of the Google domain.
A small note on your style, I think it would be even better if you used Google color instead of your own (for the red color of the border for instance).
Explanations : - For Google preview extension compatibility, 'overflow: auto' for 'div.g' make the element adapt its size to the size of its inner floating elements (here the Google preview image). It's better than 'min-height: 85px'. - For ad-blocking, I use an advanced CSS3 selector : 'div[id^="tpa"]' to be really specific and do not block erroneously other elements.
Just great! Thank you. As far as I can see, for the Google.co.il with Hebrew interface you may want to add table[align="left"] { display: none ! important; } to remove ads.
this is a great style. I like it a lot! btw: if you use the GooglePreview Extension, you'll find that the preview images are larger than the blue boxes...
to fix that add an "min-height: 85px !important;" to the definitions of div.g
nogginhead said about Gmail Cleaner and Tweaker (for 1.0 & 2.0) on Sep 26 2008
metalmeric said about Google: no ads and compact on Aug 21 2008
kongondo said about Google: no ads and compact on Aug 21 2008
queyas said about Gmail Cleaner and Tweaker (for 1.0 & 2.0) on May 08 2008
s@ndman said about Gmail Cleaner and Tweaker (for 1.0 & 2.0) on Mar 19 2008
Ronnen said about Gmail Cleaner and Tweaker (for 1.0 & 2.0) on Dec 29 2007
zaven said about Website: cleaner - WRETCH - Album & Blog on Dec 23 2007
SCORPiON said about Gmail Cleaner and Tweaker (for 1.0 & 2.0) on Nov 22 2007
chancewen said about Google: no ads and compact on Nov 18 2007
Tombei said about Google: no ads and compact on Sep 13 2007
PomCompot said about Google: no ads and compact on Mar 27 2007
kiyouka said about Google: no ads and compact on Mar 03 2007
vasyabelkin said about Google: no ads and compact on Mar 03 2007
gn said about Google: no ads and compact on Feb 28 2007
TiSiE said about Google: no ads and compact on Dec 11 2006
hjs said about Website: cleaner - WRETCH - Album & Blog on Oct 27 2006
kiyouka said about Website: cleaner - WRETCH - Album & Blog on Oct 25 2006
ChoGGi said about Google: no ads and compact on Oct 13 2006