Re: export bookmarks as HTML without embedded favicons?

2017-05-28 Thread Lee
On 5/27/17, Felix Miata  wrote:
> Lee composed on 2017-05-26 14:10 (UTC-0400):
>
>> - start seamonkey
>> - delete all your bookmarks
>> - import your edited bookmarks.html file
>
> Doesn't keep them totally away. Using a test profile, I deleted all
> bookmarks
> that bookmark manager would permit. Then I closed SM, reenabled automatic
> import via user.js, restarted,

automatic import might be the problem - can you try deleting all your
bookmarks and then doing tools / import html, tools / export html and
see if you've got any icons in the newly exported bookmarks file?

Regards,
Lee


> then deleted the three duplicate folders importing
> always creates, then exported HTML. The result was 671,826 bytes vs. the
> 531,157
> byte result of the stripping script, and the 787,654 bytes of the original
> export.
>
>   grep ICON= bookmarks.html | wc -l
>
> on the fresh export produced 185. Doing same with the exported file I ran
> the
> stripper against produced 311. So it looks like this exercise may ultimately
> be
> good for some places.sqlite weight loss, but less than ideal.
> --
> "The wise are known for their understanding, and pleasant
> words are persuasive." Proverbs 16:21 (New Living Translation)
>
>  Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
>
> Felix Miata  ***  http://fm.no-ip.com/
> ___
> support-seamonkey mailing list
> support-seamonkey@lists.mozilla.org
> https://lists.mozilla.org/listinfo/support-seamonkey
>
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: export bookmarks as HTML without embedded favicons?

2017-05-27 Thread Paul B. Gallagher

EE wrote:

Paul B. Gallagher wrote:

Lee wrote:

On 5/25/17, Felix Miata  wrote:

Most icons to me are useless, but particularly so for favicons, too
tiny to present meaning, besides a waste of space and processing
overhead. I'd like to be able to archive bookmarks in HTML form
without the bloat favicons represent.

Does anyone know of any way this can be done, extension maybe?


I can't stand them, so maybe don't allow them in the first place?

...



Here's an easy way:

In a browser window, right-click the leftmost part of the location bar,
where an icon would appear. Choose Settings for this Toolbar: Text.


Just block favicons and site icons. In about:config:
browser.chrome.favicons - set to false
browser.chrome.site_icons - set to false


Or do Edit | Preferences | Appearance | Content
[ ] Show website icons
[ ] Aggressively look for website icons when the page doesn't define one

--
War doesn't determine who's right, just who's left.
--
Paul B. Gallagher

___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: export bookmarks as HTML without embedded favicons?

2017-05-27 Thread EE

Paul B. Gallagher wrote:

Lee wrote:

On 5/25/17, Felix Miata  wrote:

Most icons to me are useless, but particularly so for favicons, too
tiny to present meaning, besides a waste of space and processing
overhead. I'd like to be able to archive bookmarks in HTML form
without the bloat favicons represent.

Does anyone know of any way this can be done, extension maybe?


I can't stand them, so maybe don't allow them in the first place?

...



Here's an easy way:

In a browser window, right-click the leftmost part of the location bar,
where an icon would appear. Choose Settings for this Toolbar: Text.


Just block favicons and site icons. In about:config:
browser.chrome.favicons - set to false
browser.chrome.site_icons - set to false

___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: export bookmarks as HTML without embedded favicons?

2017-05-27 Thread Felix Miata
Lee composed on 2017-05-26 14:10 (UTC-0400):

> - start seamonkey
> - delete all your bookmarks
> - import your edited bookmarks.html file

Doesn't keep them totally away. Using a test profile, I deleted all bookmarks
that bookmark manager would permit. Then I closed SM, reenabled automatic import
via user.js, restarted, then deleted the three duplicate folders importing
always creates, then exported HTML. The result was 671,826 bytes vs. the 531,157
byte result of the stripping script, and the 787,654 bytes of the original 
export.

grep ICON= bookmarks.html | wc -l

on the fresh export produced 185. Doing same with the exported file I ran the
stripper against produced 311. So it looks like this exercise may ultimately be
good for some places.sqlite weight loss, but less than ideal.
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: export bookmarks as HTML without embedded favicons?

2017-05-27 Thread Felix Miata
Lee composed on 2017-05-26 14:10 (UTC-0400):

> Felix wrote:

>> Fresh export with all set as you have except autoExport still has them all,
>> saved html file same size as last time. :-(

> Not really surprising - I think those settings just prevent icons from
> creeping into your bookmarks.

> You're a linux user, so you have vi - correct?

> Try this - hopefully it's just a one-time thing after you have all the
> icon stuph turned off:
> - export your bookmarks
> - exit seamonkey
> - copy the bookmarks.html file somewhere safe
> vi bookmarks.html
> :1,$ s/ ICON_URI="[^"]*"//
> :1,$ s/ ICON="data:[^"]*"//
> :wq
> - start seamonkey
> - delete all your bookmarks
> - import your edited bookmarks.html file

> I found an old bookmarks file in my backups and it had two types of
> icon references:
>  ICON_URI="http://whatever;
> and
>  ICON="data:image/png;base64,whatever"

> I don't remember if vi pattern matching is greedy or no, so instead of
> matching on
>  ".*" which could match way more than you want, match on
>  "[^"]*"
> which matches everything up to a "

> I'm on windoze & used the windows version of vim - ymmv

Thanks much! :-D I'm close to worthless working with wildcards and special
characters, but you enabled me to come up with this mini-script:

sed 's/ ICON_URI="[^"]*"//g' $1 > $2
sed 's/ ICON="data:[^"]*"//g' $2 > $3

The result was a 32.6% total reduction, from 787,654 to 531,157. The
intermediary step size was 759,359, -3.6%.

Your reply arrived when I was almost done doing it partially via script,
partially via text editor, starting with:

sed 's/ ICON_URI=/\n ICON_URI=/g' $1 >> $2

That put each data item along with a relatively short appending string on a new
line, enabling me to quickly goto each such line, use END then cursor left to >,
hit enter, Ctrl-Y, then BS to rejoin the useful pieces of the DT item. I don't
know how long I spent, but I proceeded to finish before trying your method to
see what the difference might come out to. Mine was 526,235, 33.2% reduction,
but I took the liberty of deleting at least one duplicate DT in that process.

Deleting bookmarks then importing remains todo. I have multiple other profiles,
more than one of which need them imported too. I did already import into one FF
ESR 45 profile without doing any deletes first, via
user_pref("browser.places.importBookmarksHTML", true); in user.js. As both FF &
SM have done in the past, Recently Bookmarked and Recent Tags folders got
duplicated.
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: export bookmarks as HTML without embedded favicons?

2017-05-26 Thread Lee
On 5/26/17, Paul B. Gallagher  wrote:
> Lee wrote:
>> On 5/25/17, Felix Miata  wrote:
>>> Most icons to me are useless, but particularly so for favicons, too
>>> tiny to present meaning, besides a waste of space and processing
>>> overhead. I'd like to be able to archive bookmarks in HTML form
>>> without the bloat favicons represent.
>>>
>>> Does anyone know of any way this can be done, extension maybe?
>>
>> I can't stand them, so maybe don't allow them in the first place?
>>
>> ...
>>
>
> Here's an easy way:
>
> In a browser window, right-click the leftmost part of the location bar,
> where an icon would appear. Choose Settings for this Toolbar: Text.

 there's an icon that sort of looks like a paper airplane .. or
maybe a pencil with a notched eraser, on the location bar just to the
left of the "https://;
right click on that, left click on Settings for this Toolbar and
there's a black dot next to Icons


What I have now works just fine for me, so I don't want to mess with
it - thanks anyway!

Regards,
Lee
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: export bookmarks as HTML without embedded favicons?

2017-05-26 Thread Lee
On 5/26/17, Felix Miata  wrote:
> Lee composed on 2017-05-26 10:24 (UTC-0400):
>
>> Felix Miata wrote:
>
>>> Most icons to me are useless, but particularly so for favicons, too tiny
>>> to
>>> present meaning, besides a waste of space and processing overhead. I'd
>>> like to
>>> be able to archive bookmarks in HTML form without the bloat favicons
>>> represent.
>>>
>>> Does anyone know of any way this can be done, extension maybe?
>
>> I can't stand them, so maybe don't allow them in the first place?
>
>> alerts.showFavicons   false
>
> Already was.
>
>> browser.chrome.favicons  false
>
> Already was.
>
>> browser.chrome.image_icons.max_size  0
>
> Was 1024.
>
>> browser.chrome.load_toolbar_icons  0
>
> Did not exist.
>
>> browser.chrome.site_icons  false
>
> Was true.
>
>> and
>> browser.bookmarks.autoExportHTML  true
>
> I do it manually when desired.
>
> Fresh export with all set as you have except autoExport still has them all,
> saved html file same size as last time. :-(

Not really surprising - I think those settings just prevent icons from
creeping into your bookmarks.

You're a linux user, so you have vi - correct?

Try this - hopefully it's just a one-time thing after you have all the
icon stuph turned off:
- export your bookmarks
- exit seamonkey
- copy the bookmarks.html file somewhere safe
vi bookmarks.html
:1,$ s/ ICON_URI="[^"]*"//
:1,$ s/ ICON="data:[^"]*"//
:wq
- start seamonkey
- delete all your bookmarks
- import your edited bookmarks.html file

enjoy!

Regards,
Lee


I found an old bookmarks file in my backups and it had two types of
icon references:
 ICON_URI="http://whatever;
and
 ICON="data:image/png;base64,whatever"

I don't remember if vi pattern matching is greedy or no, so instead of
matching on
 ".*" which could match way more than you want, match on
 "[^"]*"
which matches everything up to a "

I'm on windoze & used the windows version of vim - ymmv
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: export bookmarks as HTML without embedded favicons?

2017-05-26 Thread Paul B. Gallagher

Lee wrote:

On 5/25/17, Felix Miata  wrote:

Most icons to me are useless, but particularly so for favicons, too
tiny to present meaning, besides a waste of space and processing
overhead. I'd like to be able to archive bookmarks in HTML form
without the bloat favicons represent.

Does anyone know of any way this can be done, extension maybe?


I can't stand them, so maybe don't allow them in the first place?

...



Here's an easy way:

In a browser window, right-click the leftmost part of the location bar, 
where an icon would appear. Choose Settings for this Toolbar: Text.


--
War doesn't determine who's right, just who's left.
--
Paul B. Gallagher

___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: export bookmarks as HTML without embedded favicons?

2017-05-26 Thread Felix Miata
Lee composed on 2017-05-26 10:24 (UTC-0400):

> Felix Miata wrote:

>> Most icons to me are useless, but particularly so for favicons, too tiny to
>> present meaning, besides a waste of space and processing overhead. I'd like 
>> to
>> be able to archive bookmarks in HTML form without the bloat favicons
>> represent.
>>
>> Does anyone know of any way this can be done, extension maybe?

> I can't stand them, so maybe don't allow them in the first place?

> alerts.showFavicons   false

Already was.

> browser.chrome.favicons  false

Already was.

> browser.chrome.image_icons.max_size  0

Was 1024.

> browser.chrome.load_toolbar_icons  0

Did not exist.

> browser.chrome.site_icons  false

Was true.

> and
> browser.bookmarks.autoExportHTML  true

I do it manually when desired.

Fresh export with all set as you have except autoExport still has them all,
saved html file same size as last time. :-(
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: export bookmarks as HTML without embedded favicons?

2017-05-26 Thread Lee
On 5/26/17, David E. Ross  wrote:
> On 5/26/2017 7:24 AM, Lee wrote:
>> On 5/25/17, Felix Miata  wrote:
>>> Most icons to me are useless, but particularly so for favicons, too tiny
>>> to
>>> present meaning, besides a waste of space and processing overhead. I'd
>>> like
>>> to
>>> be able to archive bookmarks in HTML form without the bloat favicons
>>> represent.
>>>
>>> Does anyone know of any way this can be done, extension maybe?
>>
>> I can't stand them, so maybe don't allow them in the first place?
>>
>> alerts.showFavicons   false
>> browser.chrome.favicons  false
>> browser.chrome.image_icons.max_size  0
>> browser.chrome.load_toolbar_icons  0
>> browser.chrome.site_icons  false
>>
>> and
>> browser.bookmarks.autoExportHTML  true
>>
>> I just took a quick look thru the auto-saved bookmarks.html and didn't
>> see any icons - even searching for "icon" didn't show anything that
>> looked like an icon.  What keyword should I be searching for?
>>
>> Lee
>>
>
> In bookmarks.html, look for ICON_URI.

Thanks.

no instances of "ICON_URI" in either SM or FF auto-saved bookmarks.html :)

Lee
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: export bookmarks as HTML without embedded favicons?

2017-05-26 Thread David E. Ross
On 5/26/2017 7:24 AM, Lee wrote:
> On 5/25/17, Felix Miata  wrote:
>> Most icons to me are useless, but particularly so for favicons, too tiny to
>> present meaning, besides a waste of space and processing overhead. I'd like
>> to
>> be able to archive bookmarks in HTML form without the bloat favicons
>> represent.
>>
>> Does anyone know of any way this can be done, extension maybe?
> 
> I can't stand them, so maybe don't allow them in the first place?
> 
> alerts.showFavicons   false
> browser.chrome.favicons  false
> browser.chrome.image_icons.max_size  0
> browser.chrome.load_toolbar_icons  0
> browser.chrome.site_icons  false
> 
> and
> browser.bookmarks.autoExportHTML  true
> 
> I just took a quick look thru the auto-saved bookmarks.html and didn't
> see any icons - even searching for "icon" didn't show anything that
> looked like an icon.  What keyword should I be searching for?
> 
> Lee
> 

In bookmarks.html, look for ICON_URI.

-- 
David E. Ross


Consider:
*  Most state mandate that drivers have liability insurance.
*  Employers are mandated to have worker's compensation insurance.
*  If you live in a flood zone, flood insurance is mandatory.
*  If your home has a mortgage, fire insurance is mandatory.

Why then is mandatory health insurance so bad??
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: export bookmarks as HTML without embedded favicons?

2017-05-26 Thread Lee
On 5/25/17, Felix Miata  wrote:
> Most icons to me are useless, but particularly so for favicons, too tiny to
> present meaning, besides a waste of space and processing overhead. I'd like
> to
> be able to archive bookmarks in HTML form without the bloat favicons
> represent.
>
> Does anyone know of any way this can be done, extension maybe?

I can't stand them, so maybe don't allow them in the first place?

alerts.showFavicons   false
browser.chrome.favicons  false
browser.chrome.image_icons.max_size  0
browser.chrome.load_toolbar_icons  0
browser.chrome.site_icons  false

and
browser.bookmarks.autoExportHTML  true

I just took a quick look thru the auto-saved bookmarks.html and didn't
see any icons - even searching for "icon" didn't show anything that
looked like an icon.  What keyword should I be searching for?

Lee
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


export bookmarks as HTML without embedded favicons?

2017-05-25 Thread Felix Miata
Most icons to me are useless, but particularly so for favicons, too tiny to
present meaning, besides a waste of space and processing overhead. I'd like to
be able to archive bookmarks in HTML form without the bloat favicons represent.

Does anyone know of any way this can be done, extension maybe?
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey