This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Anti-Shorts | |
// @namespace http://tampermonkey.net/ | |
// @version 0.0.1 | |
// @description Tired of YouTube shorts? We are too! Transform any YouTube short into a normal video. | |
// @author Airbus-A330 | |
// @match *.youtube.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pi = (iterations=10_000_000) => { | |
let π = 0.0; | |
for (let i = 0; i < iterations; i++) { | |
let numerator = parseFloat(Math.pow(-1, i + 1)); | |
let denominator = parseFloat(((2 * i) + 1)); | |
π += parseFloat(numerator / denominator); | |
} |