Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Script to strengthen the colour of Google's ads?

36 views
Skip to first unread message

Jane

unread,
Dec 3, 2010, 11:26:31 AM12/3/10
to
I want to easily distinguish (and ignore) the ads listed at the top of
Google's results page.

Maybe the faint background colour can be made more visible.

Can you suggest some script to put in my user CSS file?

Adrienne Boswell

unread,
Dec 3, 2010, 12:32:49 PM12/3/10
to
Gazing into my crystal ball I observed Jane <ja...@invalid.com> writing in
news:Xns9E43A74205C3A53F89A@%ip:

There is a id of tads that you might be able to do something with. Did
you see that the ads on the right hand side are all decorated for the
Season?

Here's my CSS in a special stylesheet (googleads.css)
#tads {
background-color:#c0c0c0!important;
color: gray!important;
}

I edited site preferences and pointed to that special stylesheet.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jane

unread,
Dec 15, 2010, 8:28:36 AM12/15/10
to
On 17:32 3 Dec 2010, Adrienne Boswell wrote:

> Gazing into my crystal ball I observed Jane <ja...@invalid.com> writing
> in news:Xns9E43A74205C3A53F89A@%ip:
>
>> I want to easily distinguish (and ignore) the ads listed at the top
>> of Google's results page.
>>
>> Maybe the faint background colour can be made more visible.
>>
>> Can you suggest some script to put in my user CSS file?
>>
>
> There is a id of tads that you might be able to do something with.
> Did you see that the ads on the right hand side are all decorated for
> the Season?
>
> Here's my CSS in a special stylesheet (googleads.css)
> #tads {
> background-color:#c0c0c0!important;
> color: gray!important;
>}
>
> I edited site preferences and pointed to that special stylesheet.

That works GREAT but sometimes it doesn't work at all. Maybe Google is
changing something on its results page.

For example, on this search the ad background does not gave a grey colour.
http://www.google.com/search?as_q=television&as_sitesearch=en.wikipedia.org

All I can guess may have changed is the keyword "tads" in your code but I
don't really understand CSS. Any more suggestions?

Adrienne Boswell

unread,
Dec 15, 2010, 10:34:23 AM12/15/10
to
Gazing into my crystal ball I observed Jane <ja...@invalid.com> writing
in news:Xns9E4F8917AA52453F89A@%ip:

Dragonfly to the rescue!!! The bit we're looking for is called rhs_block,
so change your stylesheet to include that id as well, like so:

#tads, #rhs_block {
background-color:#c0c0c0!important;
color: gray!important;
}

Or if you don't want to see them AT ALL:

#tads, #rhs_block {
display:none;

Jane

unread,
Dec 18, 2010, 9:24:43 AM12/18/10
to
On 15:34 15 Dec 2010, Adrienne Boswell wrote:

> Gazing into my crystal ball I observed Jane <ja...@invalid.com> writing
> in news:Xns9E4F8917AA52453F89A@%ip:
>
>> On 17:32 3 Dec 2010, Adrienne Boswell wrote:
>>
>>> Gazing into my crystal ball I observed Jane <ja...@invalid.com>
>>> writing in news:Xns9E43A74205C3A53F89A@%ip:
>>>
>>>> I want to easily distinguish (and ignore) the ads listed at the top
>>>> of Google's results page.
>>>>
>>>> Maybe the faint background colour can be made more visible.
>>>>
>>>> Can you suggest some script to put in my user CSS file?
>>>>
>>>
>>> There is a id of tads that you might be able to do something with.
>>> Did you see that the ads on the right hand side are all decorated
>>> for the Season?
>>>
>>> Here's my CSS in a special stylesheet (googleads.css)
>>> #tads {
>>> background-color:#c0c0c0!important;
>>> color: gray!important;
>>>}
>>>
>>> I edited site preferences and pointed to that special stylesheet.
>>
>> That works GREAT but sometimes it doesn't work at all. Maybe Google
>> is changing something on its results page.
>>
>> For example, on this search the ad background does not gave a grey
>> colour.
>>

>> http://www.google.com/search?s_q=television&as_sitesearch=
>> en.wikipedia.org

>>
>> All I can guess may have changed is the keyword "tads" in your code
>> but I don't really understand CSS. Any more suggestions?
>>
>
> Dragonfly to the rescue!!! The bit we're looking for is called
> rhs_block, so change your stylesheet to include that id as well, like
> so:
>
> #tads, #rhs_block {
> background-color:#c0c0c0!important;
> color: gray!important;
> }
>
> Or if you don't want to see them AT ALL:
>
> #tads, #rhs_block {
> display:none;
> }

Thank you. Your code makes the right hand adverts show up more clearly but
unfortunately it still doesn't highlight the ads at the top of the list in
this link.

http://www.google.com/search?s_q=television&as_sitesearch=en.wikipedia.org

Maybe the "sitesearch" option in the link causes the results page to use a
different keyword than "#tads"?

I looked through the source but it's all a jumble to me. Can you suggest
any other solution?

Adrienne Boswell

unread,
Dec 18, 2010, 12:11:01 PM12/18/10
to
Gazing into my crystal ball I observed Jane <ja...@invalid.com> writing
in news:Xns9E52929B6DF9453F89A@%ip:

It works for me, I see neither the top nor side ads. I'm using the
"display:none" option from above.

Since I thought others might be interested I wrote up a tutorial
available at:
[http://www.cavalcade-of-coding.info/remgoogleads.php]

BootNic

unread,
Dec 18, 2010, 1:08:51 PM12/18/10
to

[href^='/'] {
color:red !important;
}

div > [href*='/url?']:before,
div > [href*='/url?']:after,
h3 [href*='/products?']:before,
h3 [href*='/products?']:after,
div [href*='/images?']:before,
div [href*='/images?']:after,
h3 [href*='/search?']:before,
h3 [href*='/search?']:after,
h3 [href*='/aclk?']:before,
h3 [href*='/aclk?']:after,
p [href*='/search?']:before,
p [href*='/search?']:after,
p [href*='/aclk?']:before,
p [href*='/aclk?']:after {
content:'';
opacity:0.7;
width:16px;
height:16px;
display:inline-block;
background-image:url(https://www.google.com/favicon.ico);
background-size:100% 100%;
background-origin:padding;
background-clip:padding;
margin:0 3px;
vertical-align:middle;
border:rgb(0,0,0) inset 1px;
border-radius:3px;
border-spacing:1px;
}

--
BootNic http://bootnic.bounceme.net Sat Dec 18, 2010 01:08 pm
A person without a sense of humor is like a wagon without springs, jolted by
every pebble in the road.
*Henry Ward Beecher*

signature.asc

Jane

unread,
Dec 21, 2010, 3:43:16 AM12/21/10
to
qOn 15:34 15 Dec 2010, Adrienne Boswell wrote:

> Gazing into my crystal ball I observed Jane <ja...@invalid.com> writing
> in news:Xns9E4F8917AA52453F89A@%ip:
>
>> On 17:32 3 Dec 2010, Adrienne Boswell wrote:
>>
>>> Gazing into my crystal ball I observed Jane <ja...@invalid.com>
>>> writing in news:Xns9E43A74205C3A53F89A@%ip:
>>>
>>>> I want to easily distinguish (and ignore) the ads listed at the top
>>>> of Google's results page.
>>>>
>>>> Maybe the faint background colour can be made more visible.
>>>>
>>>> Can you suggest some script to put in my user CSS file?
>>>>
>>>
>>> There is a id of tads that you might be able to do something with.
>>> Did you see that the ads on the right hand side are all decorated
>>> for the Season?
>>>
>>> Here's my CSS in a special stylesheet (googleads.css)
>>> #tads {
>>> background-color:#c0c0c0!important;
>>> color: gray!important;
>>>}
>>>
>>> I edited site preferences and pointed to that special stylesheet.
>>
>> That works GREAT but sometimes it doesn't work at all. Maybe Google
>> is changing something on its results page.
>>
>> For example, on this search the ad background does not gave a grey
>> colour.
>>

>> http://www.google.com/search?s_q=television&as_sitesearch=
>> en.wikipedia.org

>>
>> All I can guess may have changed is the keyword "tads" in your code
>> but I don't really understand CSS. Any more suggestions?
>>
>
> Dragonfly to the rescue!!! The bit we're looking for is called
> rhs_block, so change your stylesheet to include that id as well, like
> so:
>
> #tads, #rhs_block {
> background-color:#c0c0c0!important;
> color: gray!important;
> }
>
> Or if you don't want to see them AT ALL:
>
> #tads, #rhs_block {
> display:none;
> }

Thank you. Your change to the CSS code now makes the right hand adverts
show up more clearly. Unfortunately it still doesn't highlight the ads at

the top of the list in this link.

http://www.google.com/search?s_q=television&as_sitesearch=en.wikipedia.org

Maybe the "sitesearch" option in the link makes Google use a different
keyword than "#tads"?

I looked through the source for that page but it looks like a huge jumble
to me. Can anyone see any useful keyword in there to use with "#tads"?

Adrienne Boswell

unread,
Dec 21, 2010, 4:47:16 AM12/21/10
to
Gazing into my crystal ball I observed Jane <ja...@invalid.com> writing
in news:Xns9E5558B7AB15853F89A@%ip:

What happens when use Dragonfly? Can you find the area when clicking on
it? I am not seeing any ads -- even without my user stylesheet.

Jane

unread,
Dec 21, 2010, 11:22:37 AM12/21/10
to

I have never used Dragonfly. I didn't even know it was part of Opera until
I did a search!

I just tried Dragonfly but I don't know which part I am trying to look at.
When I click the ad, the "Dom" tab highlights this text but it doesn't
contain any keyword with a # sign like you found.

<li class="tas knavi" style="position: relative">

Adrienne Boswell

unread,
Dec 21, 2010, 6:02:50 PM12/21/10
to
Gazing into my crystal ball I observed Jane <ja...@invalid.com> writing
in news:Xns9E55A698DE4FC53F89A@%ip:

Jane, did you see the tutorial I posted a few days ago? It explains how
to start up Dragonfly and how to use it.
[http://www.cavalcade-of-coding.info/remgoogleads.php]

0 new messages