AO3: [Wrangling] Rainbow Home Page

adds CSS classes to style table rows as a rainbow, and updates dynamically when filters are applied

目前為 2022-10-09 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
escctrl
評價
0 0 0
版本
2.0
建立日期
2022-05-31
更新日期
2022-10-09
尺寸
3.7 KB
授權條款
MIT
腳本執行於

Purpose: sets CSS classes to the table rows of the Wrangling Home Page, so that you can apply a rainbow background. If you have one of the filtering scripts (Wrangling home filter, Wrangling Filter Redux, n-in-1 Filters or the Search Wrangling Home), the colors will dynamically update as you filter, so you'll always see the six rainbow colors in order.

Instructions: after enabling the script, have a look at the configuration options at the top.

  • If you set SOURCE = 'script', the script adds a bit of CSS to make the table appear a bit prettier overall. You can define
    • RAINBOW ... the six colors for the rainbow effect within the script
    • TEXT ... the text color of the fandoms and bin counts
    • BORDER ... the color of the borders inside the table
    • HIGHLIGHT ... the color of the highlighting (of the table rows on mouseover)
  • If you set SOURCE = 'skin', you'll have to add the CSS classes for the six colors .rainbow0 through .rainbow5 to your Archive Skin instead. That can make switching between skins easier or allows you to use different skins/colorschemes for different devices. For example:

    .rainbow0 {
      background: rgba(246, 48, 63, 0.2);
    }
    .rainbow1 {
      background: rgba(241, 137, 4, 0.2);
    }
    .rainbow2 {
      background: rgba(253, 221, 0, 0.2);
    }
    .rainbow3 {
      background: rgba(119, 189, 30, 0.2);
    }
    .rainbow4 {
      background: rgba(1, 152, 207, 0.2);
    }
    .rainbow5 {
      background: rgba(114, 32, 130, 0.2);
    }

    Tested: So far on Firefox for Windows.

    Known Issues: none