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.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==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://greasyfork.org/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';
        });
    });
})();