SHARE
TWEET

Untitled

a guest Mar 29th, 2012 34 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var iu=document.getElementsByClassName('gamecode');
  2. var array = [];
  3. for(i in iu) {
  4.         var o = iu[i].innerText;
  5.         o = o.replace(/\s+/g,' ');
  6.        
  7.         var matches = o.match(/ (.[^\s]+) Good \( (\d+) \) Bad \( (\d+) \) /i);
  8.        
  9.         var huita = matches[1];
  10.         var good = matches[2];
  11.         var bad = matches[3];
  12.         if( parseInt(good) > parseInt(bad) )
  13.                 array.push(huita);             
  14. }
  15. array[0];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top