-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/obfuscation #304
Feature/obfuscation #304
Conversation
@knmnyn Hmm I was wondering if the obfuscation functionality you request for is in masking the student names or associating the names with pseudonyms? |
// console.log("Masking student name now"); | ||
|
||
// Masking inside all h4 elements to get the student pairings | ||
let h4Elements = document.querySelectorAll('h4'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm is it possible select by a dedicated class instead of h4
this will allow the search to be more targeted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
likewise for other query selector functions
// console.log("Report Fn Hit") | ||
// console.log(window.shouldNotObfuscate) | ||
// console.log("Local Storage", shouldNotObfuscate) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to remove unused logs if possible!
2ecd553
to
d041556
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove unused logging statements
let h4Elements = document.querySelectorAll('h4'); | ||
h4Elements.forEach(h4Element => { | ||
|
||
// Masking inside all h4 elements with id "submission_similarities_for_students" to get the student pairings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm is "submission_similarities_for_students" id or class?
return; | ||
} | ||
|
||
// console.log("Masking student name now"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed unused logging statements
This PR address #281
By default, obfuscation is added, and if the checkbox is ticked, student names would be revealed
video1927682058.mp4