Last active
May 14, 2022 19:30
-
-
Save scoliono/dcc2d2931fd1a04af436 to your computer and use it in GitHub Desktop.
Uses alternate method of obtaining HRW answers. This should work with all types of problems.
This file contains hidden or 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
// ==UserScript== | |
// @name My HRW Assistant (Plan B) | |
// @namespace http://github.com/scoliono | |
// @version 1.1 | |
// @description Provides answers to HRW problems upon pressing "Viewer Help" button. | |
// @author scoliono | |
// @match https://my.hrw.com/wwtb/api/viewer.pl | |
// @grant none | |
// ==/UserScript== | |
var answer_toggle_display = true; | |
bc_help = function() { | |
if (answer_toggle_display == true) | |
{ | |
$("#borders").after('<iframe width="700" height="250" style="border:none;" id="answers_container" src="https://my.hrw.com/wwtb/api/viewquestion.pl?qid='+cFLque.que.tid.split("chap").join("").split("sect").join("").split("prob").join("")+'&qtxt='+WFO.seed+'"></iframe>'); | |
answer_toggle_display = false; | |
} | |
else | |
{ | |
$("#answers_container").remove(); | |
answer_toggle_display = true; | |
} | |
}; | |
var old_bc_next = bc_next; | |
var old_bc_jumpto = bc_jumpto; | |
bc_next = function() { | |
old_bc_next(); | |
$("#answers_container").remove(); | |
answer_toggle_display = true; | |
}; | |
bc_jumpto = function(cqn,checked) { | |
old_bc_jumpto(cqn,checked); | |
$("#answers_container").remove(); | |
answer_toggle_display = true; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version 1.1 - 2/15/16