Skip to content

Instantly share code, notes, and snippets.

@Kizjkre
Last active May 18, 2024 17:59
Show Gist options
  • Save Kizjkre/11a74cb6387c8a54a7a86b31a980ff65 to your computer and use it in GitHub Desktop.
Save Kizjkre/11a74cb6387c8a54a7a86b31a980ff65 to your computer and use it in GitHub Desktop.
Symbolab Unlocker
// ==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
}
})
}
})();
@Pzdrs
Copy link

Pzdrs commented May 26, 2022

doesnt work my g

@omrsallam
Copy link

symbolab patched it ;(

@sofnotfun
Copy link

not working fam :(((

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment