Created
December 5, 2019 15:45
-
-
Save gmatheu/d885f108a121935cba34f5f00ac7fb93 to your computer and use it in GitHub Desktop.
Whizlabs exam Report cleaner
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
$('input[type=radio][checked=checked]').toArray().forEach(it => it.removeAttribute('checked')) | |
$('input[type=checkbox][checked=checked]').toArray().forEach(it => it.removeAttribute('checked')) | |
$('input[type=radio]').toArray().forEach(it => it.removeAttribute('disabled')) | |
$('label.correct-ans').toArray().forEach(it => it.classList.replace('correct-ans', 'hidden-ans')) | |
$('label.incorrect-ans').toArray().forEach(it => it.classList.remove('incorrect-ans')) | |
$('div.status').toArray().forEach(it => it.remove()) | |
$('div.user-login-profile').toArray().forEach(it => it.remove()) | |
$('div.reports').toArray().forEach(it => it.remove()) | |
$('div.domains').toArray().forEach(it => it.remove()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment