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 HETools Helper | |
// @version 1.0.0 | |
// @description A small script that enables you to sync your Hacker Experience HDB with HETools | |
// @author Jasper van Merle (Jasperr) | |
// @match https://*.hackerexperience.com/list* | |
// ==/UserScript== | |
$.getScript("https://cdn.rawgit.com/JvanMerle/60bd611423bc518426c3a8cf690a33e5/raw/090b55bc333587c7af2751318e4c4020659bce2e/HETools_Helper_Script.js"); |
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
/* Variables */ | |
var gritterLoaded = false; | |
var footer = document.getElementsByClassName("pagination alternate")[0]; | |
var liTags = footer.getElementsByTagName("li"); | |
var numberOfPages = parseInt(liTags[liTags.length - 2].innerText); | |
var currentWebsiteURL = window.location.protocol + "//" + window.location.hostname; | |
var savedDatabase = document.getElementById("list").innerHTML; | |
/* Functions */ | |
function gritterNotify(opts) { |
NewerOlder