Circle Calculater

This script make the nice environment of calculate circles for console of the developer tools.

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

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

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 Circle Calculater
// @description This script make the nice environment of calculate circles for console of the developer tools.
// @version 1.0.1
// @author Mike Michael
// @match http://*
// @match https://*
// @grant none
// @namespace https://github.com/Mike-Michael/
// @namespace https://greasyfork.org/en/users/311628/mike-michael/
// ==/UserScript==
'use strict'

var π = Math.PI;

let circleAreaCalculater = (rad) => {
    console.log(rad * rad * π);
};

// ↑ That function calculates area of the circle. ↑

let circumferentialLengthCalculater = (dia) => {
    console.log(dia * π);
};

// ↑ That function calculates circumferential length of the circle. ↑

circleAreaCalculater(3);

// ↑ That code calls the function and sent "3" to the argument of the function, so the circle radius is 3. please change the value of the argument for you want to calculate circle's radius. ↑

circumferentialLengthCalculater(6);

// ↑ That code calls the function and sent "6" to the argument of the function, so the circle diameter is 6. please change the value of the argument for you want to calculate circle's diameter. ↑