Greasy Fork is available in English.

Chess.com New

Remove the advertisement plus recolor a little bit

Fra 13.03.2015. Se den seneste versjonen.

  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
  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. addGlobalStyle('div#main_bc {background: rgba(181, 216, 66, 0.81) !important;}');
  33.  
  34. //addGlobalStyle('div#advert_content {display: none !important;}');
  35.  
  36. $("div#advert_content").remove();
  37.  
  38.  
  39.  
  40.  
  41. //$('body').css("background", "url(http://s3.postimg.org/4xq6qmnrn/Background1752_1168.gif) ");
  42.  
  43. //function GM_addStyle( css )
  44.  
  45.  
  46. //GM_addStyle(".boardContainer { color: white; background-color: black; } img { border: 0; }");