Skip to content

Instantly share code, notes, and snippets.

@iarigby
iarigby / submit-grades.js
Created Nov 24, 2019
submit grades to Google Classroom
View submit-grades.js
// ew vars but otherwise not easy to copy paste to console while changing
var resultsListElement="DC55n"
var nameDiv="YVvGBb"
var gradeSpan="cL8LOd" // [0]
// declare const students, csv string
function main() {
const marks = parseCsv(studentsCSV)
const results = getStudents()
.filter(needsChecking)
.map(e => createResult(e, marks))
@iarigby
iarigby / download_assignments.js
Last active May 25, 2021
Download all assignments from google classroom (student work window)
View download_assignments.js
/**
HOW TO USE
1. go to assignment submissions (classwork > click assignment > student work)
2. open developer console ( F12 or right click > inspect element > console in top)
3. copy and paste this code, assignments will be downloaded in 5 second intervals
NOTE: CHANGE auth_user IF NECESSARY
if you are signed in to multiple google accounts, you need to select whichever you use for classroom
(ie freeuni account). If that account is the default one, leave at 0. Otherwise, sign in to gmail with that account
and the number will be displayed in url bar (https://mail.google.com/mail/u/$number), enter that
View dabblet.css
html, body {
margin: 0;
padding: 0;
}
.btn-header li{
border: 1px solid grey;
color: #333;
font-family: 'Raleway', sans-serif;
font-weight: 600;