fix opera-date date

This commit is contained in:
mp3geek 2011-08-26 21:36:11 +12:00
parent f816881399
commit 0342b7bdc9
3 changed files with 6 additions and 8 deletions

View File

@ -39,7 +39,7 @@ my $current = [];
# Check "!", "[]" and "#" (Firefox and Opera)
#
while ( <$fh> ) {
if ( m/^(?:[!\[]|#\s)/ ) {
if ( m/^(?:[!\[]|#;\s)/ ) {
output $current, $fhout;
$current = [ $_ ];
}

View File

@ -1,16 +1,14 @@
; Fanboy's Adblock list (Opera)
; Checksum: Mr5so6qUEbA8pxNSf/mWJQ
; Checksum: dUrIfSv3tR9LpUFS0gputw
; Updated: 26 Aug 2011
;
;
;
; Email: fanboyadblock@googlegroups.com Project homepage: http://fanboy.co.nz/
; License: http://creativecommons.org/licenses/by/3.0/
; Linux: ~/.opera/
; OSX: /Users/<username>/Library/Preferences/Opera Preferences/
; save this urlfilter.ini file into,
; Updated: 14 Aug 2011
;
; Vista: C:\Users\<username>\AppData\Roaming\Opera\Opera\
; XP: C:\Documents and Settings\...\Application Data\Opera\Opera\
;
[prefs]
prioritize excludelist=1
[include]

View File

@ -65,7 +65,7 @@ my @months = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();
$year += 1900; # Year is years since 1900.
my $todaysdate = "$mday $months[$mon] $year";
$data =~ s/(^.*#.*Updated:\s*)(.*)\s*$/$1$todaysdate/gmi;
$data =~ s/(^.*;.*Updated:\s*)(.*)\s*$/$1$todaysdate/gmi;
# Recalculate the checksum as we've altered the date.
$checksumData = $data;