Skip to content

Instantly share code, notes, and snippets.

@jajoosam
Last active September 3, 2018 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jajoosam/936a4840b1e036104094103a9248cdff to your computer and use it in GitHub Desktop.
Save jajoosam/936a4840b1e036104094103a9248cdff to your computer and use it in GitHub Desktop.
Pioneer.app rank checker, sends back to telegram
// ==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