Created
May 15, 2024 17:07
-
-
Save acspike/a6402b5be39dc0230dc5d907bb47e36a to your computer and use it in GitHub Desktop.
Moodle Grader Report Tab Order User Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Moodle Grader Report Tab Order | |
// @namespace https://moodle.mlc-wels.edu | |
// @version 2024-05-15 | |
// @description try to take over the world! | |
// @author Aaron Spike | |
// @match https://moodle.mlc-wels.edu/grade/report/grader/index.php* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=mlc-wels.edu | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const rows = document.querySelectorAll("tr.userrow"); | |
const row_count = rows.length; | |
rows.forEach(function(row,row_idx){ | |
const elts = row.querySelectorAll("td.gradecell input"); | |
elts.forEach(function(elt, elt_idx){ | |
elt.tabIndex = row_idx + elt_idx * row_count + 1; | |
}); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment