Project

General

Profile

1
match,repl,comment
2
,,#### formatting fixes
3
"(?<=</TITLE>
4
)(?!<style)","<style type=""text/css"">
5
/*fixes for default HTML tag formatting*/
6
dl dl {margin-left: 30pt;} /*indent nested <dl>s*/
7

    
8
/*readability*/
9
html {font-family: sans-serif;} /*use readable font*/
10
dt {margin-top: 6pt; margin-bottom: 6pt;} /*visually separate <dt>s*/
11

    
12
/*Firefox bookmarks-specific*/
13
dd {white-space: pre;} /*format bookmark description as plaintext*/
14
</style>
15
",add <style>
16
"^<DD>.*(?:
17
(?! *<).*)*(?=
18
 *<DL>)","\g<0>
19
</DD>",close <DD> when followed by tags which don't autoclose it properly
20
(?s)(<A .*?>)(?:<img\b.*?/>)?,"\1<img width=""16"" height=""16"" src=""blank.gif"" style=""margin-right: 0.5em;""/>",display placeholder favicon image for every link to ensure uniform alignment
21
"(?s)(\bICON=("".*?"").*?>.*?) src=""blank\.gif"" ","\1
22
src=\2
23
",display ICON attribute as favicon when available
24
,,#### svn diff cleanup
25
" (ICON=""data:.*?"") ?(?!
26
)","
27
\1
28
",put ICON attributes with favicon contents on their own line so the rest of the line is easier to see
29
" LAST_MODIFIED="".*?""",,"remove LAST_MODIFIED attributes, which seem to change whenever the favicon is updated and clutter up the svn diff"
30
,,#### bookmark text fixes
31
(?<=^<DD>)(?!&quot;|$)(?:[^:\n]*? description: )?,page's description: ,"label page's description as such to avoid confusing it with comments added by the bookmark author, who may not agree with it. the page's description is in the 1st paragraph(s), when provided. if the bookmark desc starts with "" or a blank line, this is an author-added quotation or comment and not the page's description."
32
,,#### bookmark reorganization
33
"(?<=^<DL><p>
34
)((?s).*)(^    <DT><H3 .*PERSONAL_TOOLBAR_FOLDER=""true"">Bookmarks Toolbar</H3>
35
(?:(?s).*?)
36
    </DL><p>
37
)",\2\1,move Bookmarks Toolbar to beginning
38
"(?<=PERSONAL_TOOLBAR_FOLDER=""true"">Bookmarks Toolbar</H3>
39
)<DD>(?:(?s).*?)</DD>
40
",,remove Bookmarks Toolbar desc
41
"(?<=PERSONAL_TOOLBAR_FOLDER=""true"">)Bookmarks Toolbar(?=</H3>$)",Quick links,rename Bookmarks Toolbar to Quick links
(1-1/54)