Brightspace Grade Append

The Grade Append userscript is used to add the student's current grade to the navigation wrapper.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @version 2.0
// @name           Brightspace Grade Append
// @include        https://ggc.view.usg.edu/d2l/home/*
// @description    The Grade Append userscript is used to add the student's current grade to the navigation wrapper.
// @description    This allows the student to keep track of their grade at all times without having to access the grade section of D2L.
// @namespace https://greasyfork.org/users/411524
// ==/UserScript==

var href = jQuery("a").attr("href");
var classID = href.replace('/d2l/home/', '');
console.log(classID);
appendGrade(classID);
function appendGrade(classID) {
    var newDiv = document.createElement("div");
    newDiv.setAttribute("id", "test");
    var currentDiv = document.getElementById("div1");
    var br = document.createElement("br");
    jQuery(document.getElementsByClassName("d2l-navigation-s-main-wrapper")[0].teclassIDtContent == "Grades").append(newDiv)
    var newContent = document.createTextNode("Grade: ");
    jQuery.each(jQuery('.d2l-navigation-s-main-wrapper div.d2l-navigation-s-item'), function(ind) {
        jQuery(this).attr('id', 'id-' + parseInt(ind + 1));
        jQuery(".d2l-navigation-s-main-wrapper").append(newContent,br,newDiv)
    });
    jQuery("#test").load( "/d2l/lms/grades/index.d2l?ou='" + classID + "' #z_i" );

}