mirror of
https://github.com/lebr0nli/slader-extension.git
synced 2025-06-04 03:58:14 +00:00
Visually seperate solutions
This commit is contained in:
parent
4a09ef35d6
commit
d11b378670
|
@ -48,7 +48,7 @@ or use
|
||||||
|
|
||||||
git clone https://github.com/lebr0nli/slader-extension.git
|
git clone https://github.com/lebr0nli/slader-extension.git
|
||||||
|
|
||||||
2. Select the file **slader_bypass-0.6-fx.xpi** in **slader-extension-main**
|
2. Select the file **slader_bypass-0.7-fx.xpi** in **slader-extension-main**
|
||||||
|
|
||||||
3. Drag the file into the URL bar, click "add" when prompted
|
3. Drag the file into the URL bar, click "add" when prompted
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,14 @@ function processData(data){
|
||||||
var qDetails = JSON.parse(json[0]);
|
var qDetails = JSON.parse(json[0]);
|
||||||
var solutions = (qDetails.question || qDetails.exercise).solutions;
|
var solutions = (qDetails.question || qDetails.exercise).solutions;
|
||||||
// Display JSON data as answer
|
// Display JSON data as answer
|
||||||
|
solutionNum = 0;
|
||||||
solutions.forEach(solution => {
|
solutions.forEach(solution => {
|
||||||
|
solutionNum++;
|
||||||
|
expArea.appendChild(document.createElement('hr'));
|
||||||
|
var h1 = document.createElement('h1');
|
||||||
|
h1.textContent = 'Solution ' + solutionNum + ":";
|
||||||
|
expArea.appendChild(h1);
|
||||||
|
|
||||||
const numSteps = solution.steps.length;
|
const numSteps = solution.steps.length;
|
||||||
solution.steps.forEach(step => {
|
solution.steps.forEach(step => {
|
||||||
const stepNum = step.stepNumber;
|
const stepNum = step.stepNumber;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "slader bypass",
|
"name": "slader bypass",
|
||||||
"version": "0.6",
|
"version": "0.7",
|
||||||
"author":"Alan Li & Ethan Harvey",
|
"author":"Alan Li & Ethan Harvey",
|
||||||
"description": "Slader/Quizlet 5 solutions limit bypass",
|
"description": "Slader/Quizlet 5 solutions limit bypass",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue