Random Element Spacer

Randomly adds spacing to random elements on a page

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
3n3a
今日安裝
0
安裝總數
1
評價
0 0 0
版本
2025-11-23
建立日期
2025-11-23
更新日期
2025-11-23
尺寸
2.2 KB
授權條款
未知
腳本執行於
所有網站

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