Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name New Userscript
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://www.oddsmonkey.com/Tools/Matchers/DutchMatcher.aspx
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var simons_functions = window.simons_functions = {};
- var a = document.createElement('a');
- a.id="removenonevenmoney";
- var linkText = document.createTextNode("remove <> ~2.0 matches");
- a.appendChild(linkText);
- a.title = "remove <> ~2.0";
- a.href = "javascript:simons_functions.remove_2_matches();";
- document.getElementById('mainTitle').appendChild(a);
- simons_functions.remove_2_matches = function(){
- var rows = document.querySelectorAll(".rgMasterTable tr"); //object that contains each row
- for(var i = 0; i < rows.length; i++)
- {
- try{
- let player1_odds = rows[i].querySelectorAll('.odds')[0].innerText;
- let player2_odds = rows[i].querySelectorAll('.odds')[1].innerText;
- if ( Number.parseFloat(player1_odds) < 1.94 || Number.parseFloat(player1_odds) > 2.06){
- rows[i].style.display = 'none';
- }
- } catch (error) {}
- }
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement