Changes between Version 1 and Version 2 of TransformSampleHtml
- Timestamp:
- 08/29/08 20:56:03 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TransformSampleHtml
v1 v2 13 13 }}} 14 14 15 Some sites don't provide a desciptive <title> but uses the company name for all pages. This can be fixed by extracting a resonable name from the html body and updating the <title> using the convenience function {{{ setDocumentTitle()}}}:15 Some sites don't provide a desciptive <title> but uses the company name for all pages. This can be fixed by extracting a resonable name from the html body and updating the <title> using the convenience function {{{gb.setDocumentTitle()}}}: 16 16 {{{ 17 17 #!js 18 18 var m = t.match(/<h1><span id="item_name">(.+?)<\/span><\/h1>/i); 19 19 if (m) 20 setDocumentTitle(m[1]);20 gb.setDocumentTitle(m[1]); 21 21 }}} 22 22 … … 24 24 {{{ 25 25 #!js 26 zapScriptElements();26 gb.zapScriptElements(); 27 27 }}}
