init
This commit is contained in:
21
local/cgi-bin/LJ/CSS/Cleaner.pm
Normal file
21
local/cgi-bin/LJ/CSS/Cleaner.pm
Normal file
@@ -0,0 +1,21 @@
|
||||
package LJ::CSS::Cleaner;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
no warnings 'redefine';
|
||||
|
||||
use base 'CSS::Cleaner';
|
||||
|
||||
sub new {
|
||||
my $class = shift;
|
||||
return $class->SUPER::new( @_,
|
||||
pre_hook => sub {
|
||||
my $rref = shift;
|
||||
|
||||
$$rref =~ s/comment-bake-cookie/CLEANED/g;
|
||||
return;
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user