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
"( ICON=("".*?"").*?>)(?:(?s)<img\b.*?/>)?","\1<img width=""16"" height=""16""
21
src=\2
22
style=""margin-right: 0.5em;""/>",display ICON attributes as separate images
23
,,#### svn diff cleanup
24
" (ICON=""data:.*?"") ?(?!
25
)","
26
\1
27
",put ICON attributes with favicon contents on their own line so the rest of the line is easier to see
28
" LAST_MODIFIED="".*?""",,"remove LAST_MODIFIED attributes, which seem to change whenever the favicon is updated and clutter up the svn diff"
29
,,#### bookmark text fixes
30
(?<=^<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."
31
,,#### bookmark reorganization
32
"(?<=^<DL><p>
33
)((?s).*)(^    <DT><H3 .*PERSONAL_TOOLBAR_FOLDER=""true"">Bookmarks Toolbar</H3>
34
(?:(?s).*?)
35
    </DL><p>
36
)",\2\1,move Bookmarks Toolbar to beginning
37
"(?<=PERSONAL_TOOLBAR_FOLDER=""true"">Bookmarks Toolbar</H3>
38
)<DD>(?:(?s).*?)</DD>
39
",,remove Bookmarks Toolbar desc
40
"(?<=PERSONAL_TOOLBAR_FOLDER=""true"">)Bookmarks Toolbar(?=</H3>$)",Quick links,rename Bookmarks Toolbar to Quick links
(1-1/54)