Skip to content

Instantly share code, notes, and snippets.

@SheepTester
Created August 17, 2020 22:37
Show Gist options
  • Select an option

  • Save SheepTester/84fb457d0cd8c51d010c37095bc190de to your computer and use it in GitHub Desktop.

Select an option

Save SheepTester/84fb457d0cd8c51d010c37095bc190de to your computer and use it in GitHub Desktop.
Get everyone in your class on Schoology using a discussion board
document.querySelector('.dropdown-wrapper').classList.add('open')
document.querySelector('.dropdown-wrapper').classList.remove('disabled')
for (const tr of document.querySelectorAll('[id^="discussion-user-filter-"]')) {
const name = tr.querySelector('.user-stats-name')
const a = Object.assign(document.createElement('a'), {
href: `/user/${tr.id.replace('discussion-user-filter-', '')}/info`
})
a.style.fontWeight = 'normal'
name.replaceWith(a)
a.append(name)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment