Changeset 18671 for lang/javascript/userscripts
- Timestamp:
- 09/02/08 22:55:34 (4 months ago)
- Files:
-
- 1 modified
-
lang/javascript/userscripts/poptip.user.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/poptip.user.js
r18667 r18671 323 323 { 324 324 description: 'Tabelog', 325 url: '^http://r\\.tabelog\\.com/ .*',325 url: '^http://r\\.tabelog\\.com/', 326 326 linkElement: 'id("column-main")//div[@class="photo"]/a', 327 327 popupElement: 'id("column-main")//div[@class="menulst"][position()=1]/div[@class="item"][position()<6]', … … 571 571 572 572 function createHTMLDocumentByString(str) { 573 var html = str.replace(/ <!DOCTYPE\s[^>]+>|<html(?:\s[^>]*)?>|<\/html\s*>.*/gi, '');573 var html = str.replace(/^[\s\S]*?<html(?:\s[^>]*)?>\s*|\s*<\/html\s*>[\S\s]*$/ig, ''); 574 574 var htmlDoc = document.implementation.createDocument(null, 'html', null); 575 575 var fragment = createDocumentFragmentByString(html);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)