Last active
September 3, 2018 13:47
-
-
Save jajoosam/936a4840b1e036104094103a9248cdff to your computer and use it in GitHub Desktop.
Pioneer.app rank checker, sends back to telegram
This file contains hidden or 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 Pioneer Rank Telegram Bot | |
// @namespace https://jajoosam.tech | |
// @version 0.1 | |
// @description Because I don't want to refresh every 5 minutes | |
// @author You | |
// @match https://applicants.pioneer.app/leaderboard | |
// @grant none | |
// ==/UserScript== | |
// Install this through TaperMonkey | |
(function() { | |
'use strict'; | |
var pingUrl = "<Get this from @trafficrobot on telegram>" | |
var request = new XMLHttpRequest(); | |
request.open('POST', pingUrl, true); | |
request.send("🏆 " + document.getElementsByClassName("current-user")[0].children[0].innerText.split("\n")[0]) + ", " + document.getElementsByClassName("current-user")[0].children[5].innerText.split("\n")[0]; | |
setInterval(function(){location.reload()}, 300000) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment