[ltp] Stop repeating animated GIFs in netscape.

Tom Rockwell linux-thinkpad@www.bm-soft.com
Tue, 25 Jan 2000 01:41:13 +0000


Hi,

Here's a little hack of Netscape that stops animated GIFs from repeating
(such as in banner ads).  Evidently, the GIF specification has gone
through a few revisions.  This hack makes Netscape think that it can't
handle version of the GIF that repeats.  I've been using the modified
version of Netscape for a few days and haven't noticed any problems. 
Animated GIFs will cycle through once and then end.  I originally saw
this
on USENET; there is also a web page at 
http://simmons.starkville.ms.us/tips/081097/

The hack is to replace the string "NETSCAPE2.0.ANIMEXTS1.0" with
something else.  I've just replaced it with "NETSCAPE2x0.ANIMEXTS1x0". 
sed can be used to do this from the command line (replace "orig" and
"hacked" with the filenames you need).  

sed 's/NETSCAPE2\.0\.ANIMEXTS1\.0/NETSCAPE2x0\.ANIMEXTS1x0/' orig >
hacked

The above is for Netscape 4.7 on Linux, other versions should be
similar, though for WIN32 the relevant string is
"ANIMEXTS1.0.NETSCAPE2.0".  The before and after executables should have
the same length.  You can do a "diff" to see that they are different. 
The modification can also be done in XEmacs using "hexl-mode", but it is
slow and memory intensive.

enjoy,
Tom
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html