Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Exercism.io helper tampermonkey script - allows quickly to see how many one day old exercise there are.
// ==UserScript==
// @name Mentor Helper
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Helps to find items that are about a day old
// @author chriseyre2000
// @match https://exercism.io/mentor/dashboard/next_solutions
// @grant none
// @require http://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==
(function() {
'use strict';
var items = $('.submitted-at:contains(24 hours)').length + $('.submitted-at:contains(day)').length;
$('a:contains(New solutions)').append(` To mark ${items}`)
})();
@chriseyre2000

This comment has been minimized.

Copy link
Owner Author

@chriseyre2000 chriseyre2000 commented Apr 4, 2019

This now correctly handles only 24 hours and days.
The previous version also included 24 mins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment