Web for Old PCs

A versatile script designed to make the internet more accessible for older computers. It removes heavy elements and simplifies the layout.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği yüklemek için Tampermonkey gibi bir uzantı yüklemeniz gerekir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Web for Old PCs
// @name:uk      Веб для старих ПК
// @version      1.0
// @description:uk  Універсальний скрипт, призначений для того, щоб зробити Інтернет більш доступним для старих комп’ютерів. Він видаляє об’ємні елементи та спрощує макет.
// @description  A versatile script designed to make the internet more accessible for older computers. It removes heavy elements and simplifies the layout.
// @author       smoochie
// @match        *://*/*
// @run-at       document-start
// @grant        none
// @license      MIT
// @namespace https://greatest.deepsurf.us/users/1598851
// ==/UserScript==

(function() {
    'use strict';

    const style = document.createElement('style');
    style.innerHTML = `

        iframe, [id*="google_ads"], [class*="adv"], [id*="banner"] {display: none !important;}
        object, embed {display: none !important;}
        *, *::before, *::after {
            animation: none !important;
            transition: none !important;
            transition-duration: 0s !important;
            scroll-behavior: auto !important;
        }

        * {
            border-radius: 0 !important;
            box-shadow: none !important;
            text-shadow: none !important;
            outline-offset: -1px !important;
        }

        * {
            backdrop-filter: none !important;
            filter: none !important;
            background-attachment: scroll !important;
        }


        body {background-image: none !important;background-color: #f0f0f0 !important; }
        iframe { display: none !important; }
        body, input, button, textarea {font-family: Arial, sans-serif !important;}
        [style*="opacity"] {opacity: 1 !important;}
    `;


    if (document.head) {
        document.head.appendChild(style);
    } else {
        const observer = new MutationObserver(() => {
            if (document.head) {
                document.head.appendChild(style);
                observer.disconnect();
            }
        });
        observer.observe(document.documentElement, { childList: true });
    }


    window.addEventListener('load', () => {
        document.querySelectorAll('video').forEach(v => {
            v.pause();
            v.preload = 'none';
        });
    });
})();