Greasy Fork is available in English.

Chess.com New

Remove the advertisement plus recolor a little bit

  1. // ==UserScript==
  2. // @name Chess.com New
  3. // @namespace http://example.com
  4. // @description Remove the advertisement plus recolor a little bit
  5. // @include http://www.chess.com
  6. // @include http://www.chess.com/*
  7. // @include http://live.chess.com/*
  8. // @version 1.2.0.1
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12.  
  13.  
  14. function addGlobalStyle(css) {
  15. var head, style;
  16. head = document.getElementsByTagName('head')[0];
  17. if (!head) { return; }
  18. style = document.createElement('style');
  19. style.type = 'text/css';
  20. style.innerHTML = css;
  21. head.appendChild(style);
  22. }
  23.  
  24.  
  25. addGlobalStyle('div#body.clearfix {background: #7A4B4B !important;}');
  26. addGlobalStyle('ul#nav.clearfix {background: #959520 !important;}');
  27. addGlobalStyle('div.framed.bottom-10 {background: rgba(181, 216, 66, 0.81)}');
  28.  
  29.  
  30. //addGlobalStyle('input,textarea,select {color: green !important;}');
  31.  
  32.  
  33.  
  34. addGlobalStyle('input.timerin { color: rgba(49, 18, 51, 0.97) !important;background-color: rgba(146, 54, 54, 0)!important;}');
  35.  
  36. addGlobalStyle('.timerin {font-size:large !important;}');
  37.  
  38. addGlobalStyle('div#main_bc {background-image: url("http://s3.postimg.org/4xq6qmnrn/Background1752_1168.gif") !important;}');
  39. addGlobalStyle('div.bs.bs {background: none repeat scroll 0% 0% rgba(84, 105, 17, 0.64) !important;}');
  40.  
  41. addGlobalStyle('.adzone, .webzone {display: none !important;}');
  42.  
  43. addGlobalStyle('div#div-gpt-ad-1406590358007-2 {display: none !important;}');
  44.  
  45.  
  46. addGlobalStyle('div.bs.bs { background: none repeat scroll 0% 0% rgba(102, 111, 74, 0) !important;}');
  47.  
  48.  
  49. //addGlobalStyle('div#advert_content {display: none !important;}');
  50.  
  51.  
  52. $("div#advert_content").remove();
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. //$('body').css("background", "url(http://s3.postimg.org/4xq6qmnrn/Background1752_1168.gif) ");
  63.  
  64. //function GM_addStyle( css )
  65.  
  66.  
  67. //GM_addStyle(".boardContainer { color: white; background-color: black; } img { border: 0; }");