Scripts úteis

July 18, 2011   

Jquery:

links = $('a[href*="view/id:"]');

var uniquelinks = [];

$.each(links, function(i, el){
  if ($.inArray(el.href, uniquelinks) === -1) {
    uniquelinks.push(el.href);
    window.open(el.href);
  }
});


comments powered by Disqus