Changes between Version 1 and Version 2 of TransformSampleHtml

Show
Ignore:
Timestamp:
08/29/08 20:56:03 (2 years ago)
Author:
speck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TransformSampleHtml

    v1 v2  
    1313}}} 
    1414 
    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()}}}: 
     15Some 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()}}}: 
    1616{{{ 
    1717#!js 
    1818var m = t.match(/<h1><span id="item_name">(.+?)<\/span><\/h1>/i); 
    1919if (m) 
    20         setDocumentTitle(m[1]); 
     20        gb.setDocumentTitle(m[1]); 
    2121}}} 
    2222 
     
    2424{{{ 
    2525#!js 
    26 zapScriptElements(); 
     26gb.zapScriptElements(); 
    2727}}}