返回首頁 

Greasy Fork is available in English.

Украсьте веб-формы великолепными градиентами

Автоматически применяйте цветовые градиенты ко всем столбцам таблицы, чтобы украсить ее.

Устаревшая версия за 06.09.2024. Перейдите к последней версии.


Установить этот скрипт?
Автор
##的勤务员
Оценки
000
Версия
1.0.0.2
Создано
05.09.2024
Обновлено
06.09.2024
Размер
11,0 КБ
Совместимость
Совместим с FirefoxСовместим с ChromeСовместим с OperaСовместим с SafariСовместим с Edge
Лицензия
MIT
Работает на
всех сайтах
UserScripts

##的勤务员/UserScriptsGithub:@#####GodMan

脚本来自互联网广大网友,本人仅是做了些许改动.感谢网友如有侵权,联系必删,勤务员的脚本可供随意修改.
Gmail

GreasyForkTotal InstallsTotal Daily InstallsScripts CountGood RatingsOk RatingsBad Ratings

GithubcommitforksIssuelicenseCopyRight


starsStar Me请给我点星

给勤务员加#腿

绚丽渐变美化网页表格

「 自动为网页上的表格所有列应用颜色渐变美化. 」

Views

Download:Github | ⭐GreasyFork

更新记录
  • 2024/9/6 05:41 - Ver: 1.0.0.0 修改为自动渐变色..

Gorgeous Gradient Table Beautification Script

This script automatically applies gradient colors to all tables on a webpage, based on the numerical values in each column. It enhances the visual appeal of the table without any manual clicks or operations by the user.

Features

  1. Automatic Gradient Application: The script scans tables on the page and automatically applies gradient colors to each column based on the data, without requiring user intervention.
  2. Data-Driven Gradients: Colors are generated based on the minimum and maximum values in each column, with greater color variation for larger or smaller values.
  3. Continuous Monitoring: The script checks the page every second to automatically apply gradients to any new tables that are loaded.
  4. Gradient Color Configuration: Colors are based on the HSL color model, with adjustable parameters for hue range (HUE_RANGE), saturation (SATURATION), and lightness (LIGHTNESS).

Key Parameters

  • HUE_RANGE: Sets the hue range for the gradient color, with a default value of 120 degrees, representing a gradient from green to red.
  • SATURATION: Controls the color saturation, with a default of 80% for a vibrant color effect.
  • LIGHTNESS: Controls the color lightness, with a default of 88% to ensure a soft and non-straining color gradient.

Core Logic

  1. extractFirstFloat: Extracts the first floating-point number from the cell's text, ignoring non-numeric content to ensure only numerical values are used for gradient calculation.
  2. applyGradient: Automatically calculates the minimum and maximum values for each column and generates corresponding gradient background colors.
  3. initializeTables: Periodically checks for tables on the page and applies gradient colors to any new or uninitialized tables.

Use Cases

This script is suitable for any webpage containing tables, automatically applying gradient colors to enhance data visualization and make it easier to distinguish data differences.

Project & Feedback

colorful-table-2.pngcolorful-table.png

网页相关脚本

使用帮助

更多用户脚本 /回到顶部↑