Greasy Fork

Super Duolingo 1.0

08:31:06 25/7/2024

目前为 2024-07-25 提交的版本。查看 最新版本

// ==UserScript==
// @name        Super Duolingo 1.0
// @namespace   Violentmonkey Scripts
// @match       https://www.duolingo.com/*
// @grant       none
// @version     1.0
// @author      -
// @description 08:31:06 25/7/2024
// ==/UserScript==
javascript:(function() {
    var container = document.createElement('div');
    container.style.textAlign = 'center';
    container.style.border = '2px dotted #00bfff';
    container.style.padding = '20px';
    container.style.backgroundColor = 'white';
    container.style.borderRadius = '15px';
    container.style.width = '300px';
    container.style.position = 'fixed';
    container.style.top = '20px';
    container.style.right = '20px';
    container.style.zIndex = '1000';

    var title = document.createElement('div');
    title.style.fontSize = '24px';
    title.style.marginBottom = '20px';
    title.innerHTML = 'Type: <span style="font-weight: bold;">BASIC</span>';
    container.appendChild(title);

    function createButton(text, color, url) {
        var button = document.createElement('button');
        button.innerText = text;
        button.style.display = 'block';
        button.style.width = '100%';
        button.style.padding = '10px';
        button.style.margin = '10px 0';
        button.style.fontSize = '18px';
        button.style.border = 'none';
        button.style.borderRadius = '5px';
        button.style.cursor = 'pointer';
        button.style.color = 'white';
        button.style.backgroundColor = color;
        button.onclick = function() {
            window.location.href = url;
        };
        container.appendChild(button);
    }

    createButton('Nhận Super Duolingo', '#800080', 'https://link4m.com/NuSazPwh');
    createButton('Đăng Kí Tài Khoản', '#008000', 'https://www.duolingo.com/register');
    createButton('Đăng Nhập Tài Khoản', '#0000ff', 'https://www.duolingo.com/?isLoggingIn=true');

    document.body.appendChild(container);
})();