Better CalcPlot3D rotation

Implement better (not about a point, but about the z-axis) rotation for CalcPlot3D. Also toggles edges off by default for better performance (can be enabled again by pressing E or via the UI).

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Better CalcPlot3D rotation
// @namespace    https://c3d.libretexts.org/CalcPlot3D/index.html
// @version      0.2
// @description  Implement better (not about a point, but about the z-axis) rotation for CalcPlot3D. Also toggles edges off by default for better performance (can be enabled again by pressing E or via the UI).
// @author       Henry Ruben Fischer
// @match        https://c3d.libretexts.org/CalcPlot3D/index.html
// @icon         https://c3d.libretexts.org/CalcPlot3D/CalcPlot3D.ico
// @grant        none
// @license      MIT
// ==/UserScript==

$(document).ready(function() { // When document has loaded
    location.assign("javascript:Calc3D.oi.prototype.oldN = Calc3D.oi.prototype.N,"+
        "Calc3D.oi.prototype.N=function(a,b,c){this.L(b/200),this.oldN(1,0,a/200)},"+
        "Calc3D.Sc.zh = !Calc3D.Sc.zh");
});