Everyone, I created a monster. A user script turning all the numbers on the page into their #Kaktovik numeral representation:
// ==UserScript==
// @name Forced Kaktovik
// @description Turn all the numbers on the page into Kaktovik numerals
// @version 0.0.0
// @author Artyom Bologov
// @include *://*/**
// @run-at document-end
// ==/UserScript==
(function () {
const dig2k = {
0: 'π',
1: 'π',
2: 'π',
3: 'π',
4: 'π',
5: 'π
',
6: 'π',
7: 'π',
8: 'π',
9: 'π',
10: 'π',
11: 'π',
12: 'π',
13: 'π',
14: 'π',
15: 'π',
16: 'π',
17: 'π',
18: 'π',
19: 'π',
}
function toK(num) {
if (typeof num === 'string')
num = parseInt(num)
let kak = ''
do {
const rem = num % 20
kak = dig2k[rem] + kak
num = (num - rem) / 20
} while (num !== 0)
return kak
}
document.body.innerHTML = document.body.innerHTML.replaceAll(/\b[0-9]{1,30}\b/g, toK)
}());
I'm going to run it for a while, until it breaks something important.



