From d9b94c3977a88c771e980d6e0cc51b8f569f5f01 Mon Sep 17 00:00:00 2001 From: EthanHarv Date: Tue, 13 Jul 2021 15:04:32 -0500 Subject: [PATCH] Make mozilla happy --- slader-limit-bypass/js/quizlet_bypass.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/slader-limit-bypass/js/quizlet_bypass.js b/slader-limit-bypass/js/quizlet_bypass.js index 5ddadbb..94ccae0 100644 --- a/slader-limit-bypass/js/quizlet_bypass.js +++ b/slader-limit-bypass/js/quizlet_bypass.js @@ -37,7 +37,8 @@ function processData(data){ if (window.location.toString().includes('quizlet.com/explanations/textbook-solutions')) { var oldlink = getOldTextbookLink(); - expArea.innerHTML = `

Textbooks currently only supported by Slader Bypass on the old website.


Click here to be redirected to the working version of this question. If that doesn't work, try finding it manually on the old site.
`; + expArea.innerHTML = `

Textbooks currently only supported by Slader Bypass on the old website.


Click here to be redirected to the working version of this question. If that doesn't work, try finding it manually on the old site.
`; + document.querySelector('.sladerBypassOldLink').href = oldlink; } else { @@ -62,9 +63,9 @@ function processData(data){ // Insert boilerplate card data div.innerHTML = '

'; // Step X: .s39tzu2 - div.querySelector('.s39tzu2').innerHTML = (numSteps === stepNum) ? "Result" : "Step " + stepNum; + div.querySelector('.s39tzu2').textContent = (numSteps === stepNum) ? "Result" : "Step " + stepNum; // x of x: .sb9ch1t - div.querySelector('.sb9ch1t').innerHTML = stepNum + ' of ' + numSteps; + div.querySelector('.sb9ch1t').textContent = stepNum + ' of ' + numSteps; // I'm not 100% on the structure of these, but I'll take a stab at it. // It seems that only one column is ever used. I'll iterate anyways, because I can't trust that.