mirror of
https://github.com/chylex/Transparent-Twitch-Chat.git
synced 2025-04-10 22:15:45 +02:00
Merge pull request #14 from Dullson/master
Add option to hide chat input box
This commit is contained in:
commit
e18a6a95eb
10
src/main.js
10
src/main.js
@ -22,6 +22,7 @@ const settings = {
|
||||
transparentChat: true,
|
||||
smoothTextShadow: false,
|
||||
chatLeftSide: false,
|
||||
hideChatInput: false,
|
||||
backgroundOpacity: 30,
|
||||
|
||||
hideBadgeTurbo: true,
|
||||
@ -388,6 +389,14 @@ ${settings.hideBadgeSubscriber ? `
|
||||
#chylex-ttc-settings-btn {
|
||||
margin-left: ${settings.chatWidth - 58}px;
|
||||
}
|
||||
|
||||
// hide chat input box
|
||||
|
||||
${settings.hideChatInput ? `
|
||||
${rcolBlur} .chat-input, ${rcolBlur} .video-chat__input {
|
||||
display: none;
|
||||
}
|
||||
` : ``}
|
||||
@#css}}`;
|
||||
|
||||
document.head.appendChild(style);
|
||||
@ -643,6 +652,7 @@ function createSettingsModal(){
|
||||
${generateToggle("Transparent Chat", "transparentChat")}
|
||||
${generateToggle("Smooth Text Shadow", "smoothTextShadow")}
|
||||
${generateToggle("Chat on Left Side", "chatLeftSide")}
|
||||
${generateToggle("Hide Chat Input", "hideChatInput")}
|
||||
${generateSlider("Background Opacity", "backgroundOpacity", { min: 0, max: 100, step: 5, wait: 100, text: "%" })}
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user