返回首頁 

Greasy Fork is available in English.

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

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

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


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

Beautify web forms with gorgeous gradients

「 Automatically apply color gradient beautification to all columns of tables on web pages. 」

Views

Download:Github | ⭐GreasyFork

Update record

🛠️ Beautify web forms with gorgeous gradients Change log

📅 2024/9/6 05:41 - Ver 1.0.0.0

Revise: Change to automatic gradient color.....


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

🔍You may be looking for web related scripts

Help

Recommended browsers and script managers:

  • Greasemonkey + Waterfox
  • Tampermonkey/Violentmonkey + Firefox
  • Tampermonkey/Violentmonkey + Chrome
  • Userscripts + ios Safari
  • Violentmonkey/KiWiBrowser + Android

If you need to know more about how to install userscripts,click meView graphic teaching!

More user scripts /back to top↑

View all publish scripts

🔍you may be looking for ChatGPTRelated scripts

🔍you may be looking for Web related scripts

🔍you may be looking for GitHubRelated scripts

  • GitHubSubmit information displayHTML: This script will GitHub The submission information on HTML view,to see submission details more clearly。It will automatically submit the information list、The commit header and latest commit information are converted to HTML Format,Provide better visual effects and user experience。
  • GitHub File list beautifier: GitHub File List Beautifier is a user script,used to enhance GitHub Display effect of files in warehouse。It can add color to files and folders,and replace the file type icons with small images,Makes the code base easier to browse and manage。
  • Github List of code languages ​​show all: Expand Github List of languages ​​on the repository,Show each language,Instead of hiding small parts in “other” Down
  • GitHub Automatically confirm device authorization: existGitHubThe authorization page automatically enters the authorization code and automatically confirms it.。
  • GitHubfolder下载: Add a download button,Allows easy downloading of specific GitHub 文件夹。
  • GitHubDownload single files and copy fil###RL: Add button at the end of each file line,to copy the original file URL and download files
  • githubShow warehouse size: existGithubShow warehouse size when viewing and searching warehouses
  • GitHub Sort by Date: Change the sorting method of warehouse list files to descending date order,Conveniently view the latest updated files。

🔍you may be looking for GoogleRelated scripts

  • Google Advanced search: This is a for Google Add user script for advanced search form。It adds a hideable advanced search form at the top of the page,Enable you to search for information more precisely。
  • Google Search and block specific sites: Block specific sites from search engine r###lts,Help users filter out unwanted search r###lts。 Custom input blocking site。Format-zhihu -baidu Used to block Google search content

🔍you may be looking for GreasyForkRelated scripts

🔍you may be looking for Related scripts

🔍you may be looking for adult script

🔍you may be looking for automatic translation

  • foreign language terminator: Recognize non-Chinese characters,If the length is greater than 5 And the translated text does not contain Chinese,then replace it with Chinese,Need to be accessiblegooglenetwork
  • web page translation——Automatically translated into Chinese: Give the lower right corner of each non-Chinese web page(Can be adjusted to the lower left corner)add a google Translate icon,This version is a Chinese translation version,Only translate foreign languages ​​into Chinese,Add automatic translation