Calculator English version

just a calculator to do division

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Calculator English version
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  just a calculator to do division
// @author       LongName
// @match        https://agma.io
// @match        https://www.youtube.com
// @match        https://www.roblox.com/home
// @match        https://www.chess.com
// @match        https://github.com
// @match        https://adblockplus.org
// @icon         https://cdn-icons-png.flaticon.com/512/4374/4374752.png
// @grant        none
// ==/UserScript==

   (function() {
       'use strict';
// you can actually add websites right at the top by adding following // @match        https://exemple.com/.fr/.io

// this program calculates the quotient of 2 integers entered by the user

   let dividend;
   let divider;
   let quotient = 1;

   console.log(dividend);

   dividend = Number.parseInt(prompt("seize the entire dividend", "0"));
   divider = Number.parseInt(prompt("seize the entire divider ", "1"));
   quotient = dividend / divider;

   alert("the quotient is "+quotient+".");

   console.log(`the quotient is ${quotient}.`);

})();