Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name No More Jitters
- // @namespace http://en.lichess.org/@/jlobes
- // @version 0.0
- // @description Hide LiChess spectators and non-system chat.
- // @author jlobes
- // @match http://*.lichess.org/*
- // @grant none
- // ==/UserScript==
- //These three vars should be 0 or 1;
- var hideAllChat = 0; // if 1, Hides the entire chat window
- var hideNonSystemChat = 1; //if 1, hides messages that are not from the system (Takeback, draws, etc)
- var hideSpectators = 1; //If 1, hides the spectators tab.
- if(hideSpectators===1)
- $(".watchers").hide();
- if(hideAllChat === 0)
- $(".messages_container").hide();
- if(hideAllChat != 1){
- $(document).ready(function() {
- var chatCss = {
- "display":"none"
- }
- $("div.messages_container ol.messages li:not(.system)").css(chatCss);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement