web.de | Login Only

Replaces web.de's cluttered homepage with a clean, full-screen login page.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         web.de | Login Only
// @namespace    https://greatest.deepsurf.us/en/users/1462137-piknockyou
// @version      0.4
// @author       Piknockyou (vibe-coded)
// @license      AGPL-3.0
// @description  Replaces web.de's cluttered homepage with a clean, full-screen login page.
// @match        https://web.de/*
// @icon         https://web.de/favicon.ico
// @exclude      https://*.navigator.web.de/*
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    // Only run on the main web.de domain
    if (window.location.hostname !== 'web.de' && window.location.hostname !== 'www.web.de') {
        return;
    }

    // Stop the original page from rendering
    if (document.documentElement) {
        document.documentElement.innerHTML = '';
    }

    window.addEventListener('DOMContentLoaded', () => {
        document.documentElement.innerHTML = `
        <head>
            <meta charset="UTF-8">
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <title>web.de Login</title>
            <style>
                * {
                    margin: 0;
                    padding: 0;
                    box-sizing: border-box;
                }
                html, body {
                    width: 100vw;
                    height: 100vh;
                    overflow: hidden;
                    background: #1a1a2e;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
                .login-wrapper {
                    width: 100vw;
                    height: 100vh;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
                .login-wrapper iframe {
                    width: 100%;
                    height: 100%;
                    border: none;
                }
            </style>
        </head>
        <body>
            <div class="login-wrapper">
                <iframe
                    sandbox="allow-same-origin allow-scripts allow-forms allow-top-navigation allow-popups"
                    src="https://alligator.navigator.web.de/oi/?dc=bap"
                    scrolling="no">
                </iframe>
            </div>
        </body>
        `;
    });
})();