Duolingo KN Points Increment

A simple script to increment and display KN points in Duolingo style every second.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Duolingo KN Points Increment
// @namespace    https://greasyfork.org/users/YOUR_USERNAME
// @version      1.0
// @description  A simple script to increment and display KN points in Duolingo style every second.
// @author       YOUR_NAME
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    
    const knContainer = document.createElement('div');
    knContainer.style.fontFamily = 'Arial, sans-serif';
    knContainer.style.textAlign = 'center';
    knContainer.style.marginTop = '50px';
    knContainer.innerHTML = `
        <h1>Duolingo KN Points</h1>
        <p>Your current points:</p>
        <div id="kn-points" style="
            font-size: 48px;
            font-weight: bold;
            color: #4CAF50;
        ">0</div>
    `;
    document.body.prepend(knContainer);

    let knPoints = 0;
    const knPointsElement = document.getElementById('kn-points');

    
    function updateKnPoints() {
        knPoints += 100000000; 
        knPointsElement.textContent = knPoints.toLocaleString(); 
    }

    setInterval(updateKnPoints, 1000);
})();