Skip to content

Instantly share code, notes, and snippets.

@chriseyre2000
Last active April 4, 2019 21:03
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 chriseyre2000/0fe585e1b1307b5f5ab1a4a3cfa6617e to your computer and use it in GitHub Desktop.
Save chriseyre2000/0fe585e1b1307b5f5ab1a4a3cfa6617e to your computer and use it in GitHub Desktop.
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
Copy link
Author

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