Random Element Spacer

Randomly adds spacing to random elements on a page

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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