Random Element Spacer

Randomly adds spacing to random elements on a page

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

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

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

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

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

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

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

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

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

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

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

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

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

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

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
3n3a
1日のインストール数
0
累計インストール数
1
評価
0 0 0
バージョン
2025-11-23
作成日
2025/11/23
更新日
2025/11/23
大きさ
2.15KB
ライセンス
不明
対象サイト
すべてのサイト

Random Element Spacer - Userscript

A chaotic userscript that randomly adds spacing to elements on any webpage, creating unpredictable layouts.

Features

  • Random Element Selection - Automatically selects 5-30% of all page elements randomly
  • Random Spacing - Applies 0-6.9px of margin or padding to random sides of selected elements
  • Unpredictable Results - Each page load produces different spacing patterns
  • ES5 Compatible - Works on older browsers and environments
  • Universal - Runs on all HTTPS websites

Installation

  1. Install a userscript manager extension:

  2. Click on the userscript manager icon in your browser

  3. Select "Create a new script"

  4. Copy and paste the entire userscript code

  5. Save the script (Ctrl+S or Cmd+S)

How It Works

  1. The script loads automatically on any HTTPS page
  2. It collects all elements from the page
  3. Randomly determines how many elements to modify (5-30% of total)
  4. For each selected element:
    • Randomly chooses margin or padding
    • Randomly applies 0-6.9px spacing to random sides (top, right, bottom, left)
  5. Logs the number of modified elements to the browser console

Usage

Simply browse any HTTPS website after installing the script. The spacing will be applied automatically on page load.

To see how many elements were modified, open your browser's developer console (F12) and look for the log message.

Compatibility

  • ES5 JavaScript (compatible with older browsers)
  • Works on all HTTPS websites
  • Requires a userscript manager extension

Disabling

To temporarily disable:

  • Click your userscript manager icon
  • Toggle off "Random Element Spacer"

To permanently remove:

  • Open your userscript manager dashboard
  • Delete the "Random Element Spacer" script

Notes

  • This script is purely for entertainment/chaos purposes
  • Some websites may look broken or distorted
  • Spacing is randomly applied on each page load
  • Does not modify the actual website code, only your local view

Version

Current Version: 2025-11-23

License

Free to use and modify