well i m not a professional in it.. but its not working fully in code box until your links have a space after them.

little help needed...
how can the javascript be limited to search the links till.. .html or .rar..



edit..
i think i made it work.. lemme test it