New Userscript

Turns your grades on Jupiter Ed to A's.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Turns your grades on Jupiter Ed to A's.
// @author       Tobe O
// @match        https://*.jupitered.com/*
// @require      https://code.jquery.com/jquery-3.1.1.slim.min.js
// @require      https://cdnjs.cloudflare.com/ajax/libs/mousetrap/1.6.0/mousetrap.min.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    
    function loadScript(src) {
        var s = document.createElement('script');
        s.src = src;
        document.body.appendChild(s);
    }

    function changeGrades() {
        $('#showpage > tbody > tr > td > div.colwidth.lineheight > table > tbody > tr > td:nth-child(3) > span').each(function() {
            var $span = $(this);
            var text = $span.text();
            
            if (text.indexOf('A') === -1) {
                var grade = (90 + Math.random() * 10).toFixed(1);
                text = '' + grade + '   A';
                
                if (grade < 93)
                    text += '-';
                else if (grade >= 100)
                    text += '+';
                
                $span.html(text);
            }
        });
    }
    
    
    if (!window.jQuery)
        loadScript('https://code.jquery.com/jquery-3.1.1.slim.min.js');
    if (!window.Mousetrap)
        loadScript('https://cdnjs.cloudflare.com/ajax/libs/mousetrap/1.6.0/mousetrap.min.js');
    
    $(document).ready(changeGrades);
    
    Mousetrap.bind(['ctrl+shift+y', 'command+shift+y'], changeGrades);
})();