On 8/26/2014 11:39 PM, Onno Ekker wrote:
> On 8/27/2014 1:00 AM, David E. Ross wrote:
>> On 8/26/2014 2:13 AM, Onno Ekker wrote:
>>> On 8/24/2014 2:31 AM, David E. Ross wrote:
>>>> Windows 7
>>>> SeaMonkey 2.26.1
>>>>
>>>> If I mark text on a Web page and then right-click, the pull-down context
>>>> menu shows "Serach Google for xxx", where "xxx" is the marked text
>>>> string.  While Google is my primary search service, I don't want it in
>>>> the context menu.  How can I get rid of it?
>>>>
>>>
>>> Add the following three lines to your userChrome.css:
>>>
>>> #context-searchselect {
>>>    display: none;
>>> }
>>>
>>> (Note: you can find the file userChrome.css in your profile directory in 
>>> the subdirectory chrome. Go to Help -> troubleshooting Information and 
>>> click on the Show Folder button under Application basics. If the 
>>> directory chrome or the file userChrome.css doesn't exist, you can 
>>> create it.)
>>>
>>> Onno
>>>
>>
>> Yes, that works.
>>
>> However, I see a pair of horizontal divider lines where the search item
>> used to be in the context menu.  Is there a way to eliminate at least
>> one of them?
>>
> 
> The separator line following the search select is called
> context-sep-properties (see
> http://mxr.mozilla.org/comm-central/source/suite/common/contentAreaContextOverlay.xul#264).
> 
> You can hide it by adding the same three lines with
> #context-sep-properties instead of #context-searchselect, or add the id
> to the first line:
> 
> #context-searchselect, #context-sep-properties {
>   display: none;
> }
> 

I tried both:
        #context-searchselect { display: none }
        #context-sep-properties { display: none }
and
        #context-searchselect, #context-sep-properties { display: none }

While the search item is removed from the context menu, neither of the
above removed one or both separator lines.

Yes, I know the these are not exactly as you presented them.  However, I
have been doing CSS for several years, not only for my Web pages but
also in userChrome.css and userContent.css.  I know that your three-line
statement can be all on one line.  I also know that a final semi-colon
is not needed; it is needed only if an additional CSS property follows,
in which case it is not final.

What I do not know are the various internal Gecko elements (e.g.,
context-searchselect) and how they are used.  For this, I do indeed need
help.

-- 
David E. Ross

The Crimea is Putin's Sudetenland.
The Ukraine will be Putin's Czechoslovakia.
See <http://www.rossde.com/editorials/edtl_PutinUkraine.html>.
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to