This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Better 24 urenloop leaderboard | |
// @version 0.2 | |
// @description Improve leaderboard by adding team numbers & lap difference | |
// @author Tibo | |
// @match http://*.24urenloop.be/ | |
// @grant none | |
// ==/UserScript== | |
(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var possibleRank = [8931, 1201, 1156, 5061, 4569, 4732, 3779, 4568, 5695, 4619, 4912, 5669, 6586]; | |
// Not changed since 1/8/2016 | |
// var possibleRank = [[], [], [], [], [], [], [], [], [], [], [], [], [], []]; | |
var possibleUserKey = []; | |
function checkMedal(decriptKey, api_medal) { | |
var medals = api_medal / (decriptKey + 1853) - 157; | |
return medals == Math.floor(medals) && medals >= 0 && medals < 50; | |
} | |
function checkRate(decriptKey, userKey, api_rate) { |