Skip to content

Instantly share code, notes, and snippets.

What would you like to do? helper tampermonkey script - allows quickly to see how many one day old exercise there are.
// ==UserScript==
// @name Mentor Helper
// @namespace
// @version 0.2
// @description Helps to find items that are about a day old
// @author chriseyre2000
// @match
// @grant none
// @require
// ==/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}`)

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