Last active
May 18, 2024 17:59
-
-
Save Kizjkre/11a74cb6387c8a54a7a86b31a980ff65 to your computer and use it in GitHub Desktop.
Symbolab Unlocker
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 Symbolab Unlocker | |
// @version 1.0 | |
// @description Unlocks locked steps, hides upgrade tooltips, and enables answer verification | |
// @author TheAmazingness | |
// @match https://www.symbolab.com/solver/* | |
// @include https://code.jquery.com/jquery-3.3.1.min.js | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
$('#solution_page').removeClass('signedout'); | |
$('.locked-step').removeClass('locked-step').addClass('showStepsButton'); | |
setTimeout(() => $('.tooltipster-base.tooltipster-sidetip.tooltipster-light.tooltipster-top.tooltipster-fade.tooltipster-show').hide(), 100); | |
$('#click-capture').remove(); | |
$('#verify-input').attr('id', '').attr('rel', '').removeClass('placeholder'); | |
SOLUTIONS.verify = function(b) { | |
var a = this; | |
symbolab_log("Verify", "Click", null, a.query); | |
if (a.verifying) { | |
return | |
} | |
a.verifying = true; | |
$.ajax({ | |
type: "GET", | |
url: "/api/verifySolution", | |
beforeSend: authorizeAjaxWithSyPubToken, | |
data: { | |
problem: a.query, | |
solution: b.parent().find("#verify-input").mathquill("latex"), | |
or: "solution" | |
}, | |
success: function(e) { | |
b.parent().find(".nl-answerCaption").hide(); | |
if (e.correct) { | |
b.parent().find(".nl-answerCaption.nl-greenText").show() | |
} else { | |
if (e.partiallyCorrect) { | |
b.parent().find(".nl-answerCaption.nl-goldText span").eq(0).text(e.userMessage); | |
b.parent().find(".nl-answerCaption.nl-goldText").show() | |
} else { | |
b.parent().find(".nl-answerCaption.nl-redText").show() | |
} | |
} | |
}, | |
complete: function() { | |
a.verifying = false | |
} | |
}) | |
} | |
})(); |
symbolab patched it ;(
not working fam :(((
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
doesnt work my g