Changeset 18885 for lang/javascript
- Timestamp:
- 09/05/08 12:27:57 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/hatena.rss.read.more.supporter.user.js
r16692 r18885 294 294 ReadMore.parser = function (text) { 295 295 function trimspace (str) { 296 return str.replace(/^\s */, '').replace(/\s*$/, '');296 return str.replace(/^\s+|\s+$/g, ''); 297 297 } 298 298 function isValid (info) { … … 307 307 308 308 var info = {}; 309 var lines = text.split(/\r \n|[\r\n]/);309 var lines = text.split(/\r?\n|\r/); 310 310 var reg = /(^[^:]*?):(.*)$/; 311 311 lines.forEach(function (line) { … … 480 480 // based on "Pagerization" by id:ofk (http://userscripts.org/scripts/show/7623) 481 481 function parseHTML(str) { 482 str = str.replace(/^[\s\S]*?<html(?: \s[^>]+?)?>|<\/html\s*>[\S\s]*$/ig, '');482 str = str.replace(/^[\s\S]*?<html(?:[ \t\r\n][^>]*?)?>|<\/html[ \t\r\n]*>[\S\s]*$/ig, ''); 483 483 var res = document.implementation.createDocument(null, 'html', null); 484 484 var range = document.createRange();
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)