Skip to content

Instantly share code, notes, and snippets.

@rullinoiz
rullinoiz / PositivePhysics.user.js
Last active March 11, 2022 21:28
embed calculator soup into any positive physics assignment
// ==UserScript==
// @name Positive Physics CalculatorSoup embed
// @version 1.2
// @description Embeds CalculatorSoup into Positive Physics
// @author ollinruiz
// @match https://www.positivephysics.org/lesson/physics/*
// @grant none
// @run-at document-end
// @updateURL https://gist.githubusercontent.com/rullinoiz/597e6dde063d281b097c963ebb3ca970/raw/3a56fc839d2d9536425224a770c1a98e0281e899/PositivePhysics.user.js
// @downloadURL https://gist.githubusercontent.com/rullinoiz/597e6dde063d281b097c963ebb3ca970/raw/3a56fc839d2d9536425224a770c1a98e0281e899/PositivePhysics.user.js
@rullinoiz
rullinoiz / PositivePhysics.js
Last active February 16, 2022 17:27
insert calculatorsoup into all positive physics assignments
// ==UserScript==
// @name Positive Physics CalculatorSoup embed
// @version 1.1
// @description Embeds CalculatorSoup into Positive Physics
// @author ollinruiz
// @match https://www.positivephysics.org/positiveskill*
// @grant none
// @run-at document-end
// @require https://code.jquery.com/jquery-3.6.0.js
// @require https://code.jquery.com/ui/1.13.1/jquery-ui.js
javascript:(function(){let script = document.createElement("script");
script.src = "data:text/javascript;base64,KGZ1bmN0aW9uKCkgewogICAgbGV0IHNjcmlwdCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ3NjcmlwdCcpOyAKICAgIHNjcmlwdC5zcmM9Imh0dHBzOi8vY2RuLmpzZGVsaXZyLm5ldC9ucG0vZXJ1ZGEiOyAKICAgIGRvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoc2NyaXB0KTsgCiAgICBzY3JpcHQub25sb2FkID0gZnVuY3Rpb24gKCkgeyBlcnVkYS5pbml0KCkgfSAKfSkoKTs=";
document.body.appendChild(script);})();
result = "";
completion(result);