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.