Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String.prototype.format = function () {
- var ret = [];
- var string = this,
- threadsStart = string.indexOf('<span class="filesize">File'),
- threadsEnd = string.indexOf("</blockquote>");
- if (threadsStart != -1 || threadsEnd != -1)
- ret.push( string.slice(threadsStart, threadsEnd) );
- for (i=1;i<10;i++)
- {
- alert(threadsStart);
- threadsStart = string.indexOf('<span class="filesize">File', threadsEnd+1);
- threadsEnd = string.indexOf('</blockquote>', threadsEnd+1);
- if (threadsStart != -1 || threadsEnd != -1)
- ret.push( string.slice(threadsStart, threadsEnd) );
- }
- return ret;
- };
Add Comment
Please, Sign In to add comment