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
|
,,#### svn diff cleanup
|
21
|
" ICON=""data:.*?""",,"remove ICON attributes with favicon contents, which clutter up the svn diffs"
|
22
|
" LAST_MODIFIED="".*?""",,"remove LAST_MODIFIED attributes, which seem to change whenever the favicon is updated and clutter up the svn diff"
|
23
|
,,#### bookmark text fixes
|
24
|
(?<=^<DD>)(?!"|$)(?:[^:\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."
|
25
|
,,#### bookmark reorganization
|
26
|
"(?<=^<DL><p>
|
27
|
)((?s).*)(^ <DT><H3 .*PERSONAL_TOOLBAR_FOLDER=""true"">Bookmarks Toolbar</H3>
|
28
|
(?:(?s).*?)
|
29
|
</DL><p>
|
30
|
)",\2\1,move Bookmarks Toolbar to beginning
|
31
|
"(?<=PERSONAL_TOOLBAR_FOLDER=""true"">Bookmarks Toolbar</H3>
|
32
|
)<DD>(?:(?s).*?)</DD>
|
33
|
",,remove Bookmarks Toolbar desc
|
34
|
"(?<=PERSONAL_TOOLBAR_FOLDER=""true"">)Bookmarks Toolbar(?=</H3>$)",Quick links,rename Bookmarks Toolbar to Quick links
|