[TAG] Tips

Bruce Halco bruce at halcomp.com
Wed Nov 10 23:32:07 MSK 2004


Ok, here's one for people who find most use of Flash animations to be 
annoying, but don't want to remove Flash altogether.

---
#!/usr/bin/perl

$file1 = '/opt/mozilla/plugins/libflashplayer.so';
$file2 = '/opt/mozilla/plugins/libnullplugin.so';

if ( -r $file1 )
   { chmod 0000, $file1, $file2; }
  else
   { chmod 0444, $file1, $file2; }
---

I put this in a menu entry, and it just toggles the file permissions for 
the flash plugin and the null plugin.  The latter is necessary to 
prevent the "Click to downloiad Flash" messages that can be more 
irritating than the animations I'm trying to block.

You probably need to change the paths to $file1 and $file2 to suit your 
system.

Sure you could do it with a shell script, but I happen to be much better 
at perl.

Bruce Halco




More information about the TAG mailing list