// ==UserScript== // @name Symolab Pro - unlock full steps and verify solutions for free // @namespace http://tampermonkey.net/ // @version 0.1 // @description Unlock Symbolab pro features for free // @author eyl327 // @match https://www.symbolab.com/ // @include https://*symbolab.com/* // @grant none // @downloadURL none // ==/UserScript== (function () { 'use strict'; var code = `window.onload = function(){ /* set subscription params */ if (typeof(SYSTEPS) != 'undefined') { SYSTEPS.subscribed = true }; if (typeof(SOLUTIONS) != 'undefined') { SOLUTIONS.subscribed = true }; if (typeof(SYMBOLAB) != 'undefined') { SYMBOLAB.params.subscribed = true }; isUserLoggedIn = function() { return true; }; /* remove popup when verify solution box is clicked */ if ($("#click-capture")) { $("#click-capture").addClass("click-capture-subscribed"); } /* improvements to dark mode */ fixDarkMode = function() { if($("#invert-style").length > 0) { var invertStyle = $("#invert-style")[0].innerHTML; $("#invert-style")[0].remove(); document.head.insertAdjacentHTML("beforeend", \`\`); } }; fixDarkMode(); /* overwrite toggle function to fix dark mode at end */ lightsOut = function() { var a = getInverseCookieValue(); if (a === "true") { createInvertCookie("false"); liveToggleInvert(false); symbolab_log(getProductByUrl(), "LightsOn", null) } else { createInvertCookie("true"); liveToggleInvert(true); symbolab_log(getProductByUrl(), "LightsOut", null) } fixDarkMode(); }; }`; document.documentElement.setAttribute('onreset', code); document.documentElement.dispatchEvent(new CustomEvent('reset')); document.documentElement.removeAttribute('onreset'); })()