Advertisement
Guest User

remove <> 2.0 matches

a guest
May 22nd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. // ==UserScript==
  2. // @name New Userscript
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://www.oddsmonkey.com/Tools/Matchers/DutchMatcher.aspx
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. var simons_functions = window.simons_functions = {};
  14.  
  15. var a = document.createElement('a');
  16. a.id="removenonevenmoney";
  17. var linkText = document.createTextNode("remove <> ~2.0 matches");
  18. a.appendChild(linkText);
  19. a.title = "remove <> ~2.0";
  20. a.href = "javascript:simons_functions.remove_2_matches();";
  21. document.getElementById('mainTitle').appendChild(a);
  22.  
  23. simons_functions.remove_2_matches = function(){
  24.  
  25.  
  26. var rows = document.querySelectorAll(".rgMasterTable tr"); //object that contains each row
  27.  
  28. for(var i = 0; i < rows.length; i++)
  29. {
  30.  
  31. try{
  32.  
  33. let player1_odds = rows[i].querySelectorAll('.odds')[0].innerText;
  34. let player2_odds = rows[i].querySelectorAll('.odds')[1].innerText;
  35.  
  36. if ( Number.parseFloat(player1_odds) < 1.94 || Number.parseFloat(player1_odds) > 2.06){
  37.  
  38. rows[i].style.display = 'none';
  39. }
  40.  
  41.  
  42. } catch (error) {}
  43.  
  44.  
  45. }
  46.  
  47.  
  48. }
  49.  
  50.  
  51.  
  52.  
  53. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement