Skip to content

Instantly share code, notes, and snippets.

@ThzeTerminator
Created July 7, 2020 01:37
Show Gist options
  • Save ThzeTerminator/af88a3af19e73cca88a704ba382761bd to your computer and use it in GitHub Desktop.
Save ThzeTerminator/af88a3af19e73cca88a704ba382761bd to your computer and use it in GitHub Desktop.
clicking the answer button shows you answers, regardless of permissions on Knooppunt ebooks lol
(function() {
// Load the script
var script = document.createElement("SCRIPT");
script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js';
script.type = 'text/javascript';
script.onload = function() {
var $ = window.jQuery;
// Use $ here...
$(document).ready(function() {
$("#viewFrame").contents().find('#btn_answerMode').removeAttr('unselectable');
$("#viewFrame").contents().find('#btn_answerMode').bind('click', function() {
$("#viewFrame").contents().find(".answerrow").css('clip', '');
console.log('bruh');
});
});
};
document.getElementsByTagName("head")[0].appendChild(script);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment