Opponent's Color Script

change color of opponent usernames

作者
Jstris Customization Database
日安装量
0
总安装量
21
评分
0 0 0
版本
0.1
创建于
2019-06-11
更新于
2019-06-11
大小
550 字节
许可证
暂无
适用于

■ .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.