Greasy Fork is available in English.

Opponent's Color Script

change color of opponent usernames

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
Jstris Customization Database
1日のインストール数
0
累計インストール数
21
評価
0 0 0
バージョン
0.1
作成日
2019/06/11
更新日
2019/06/11
ライセンス
不明
対象サイト

■ .slot span a {color:red;} ← this section changes the color of opponent's names that are logged into an account (users)
■ .slot span {color:green;} ← this section changes the color of opponent's names that are not logged in (guests)
■ To change the color of only one of the two types of opponents (users, guests), simply remove the section of the type you don't want to change.
- For example, to change only the color of users, use this: customStyle2.innerHTML='.slot span a {color:red;}';
- And to change only the color of guests, use this: customStyle2.innerHTML='.slot span {color:green;}';
■ If you want a specific color, replace "red" or "green" with "rgba(255, 106, 202, 100)"
■ Note: this code uses customStyle2 instead of simply customStyle in case of a collision, for example with this code removing opponent's field grid https://pastebin.com/raw/AC9qnnEb . In case customStyle2 also collides with another customStyle2 you may already have, simply change to customStyle3, or customStyle4, etc. Just remember to change all three instances of customStyle2 in the code.