Greasy Fork 还支持 简体中文。

Duolingo KN Points Increment

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

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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);
})();