Greasy Fork is available in English.

Hides Chess.com Tactics Timer Clock

chessComHideTacticsTimerClock

  1. // ==UserScript==
  2. // @name Hides Chess.com Tactics Timer Clock
  3. // @namespace http://userstyles.org
  4. // @description chessComHideTacticsTimerClock
  5. // @author ceberous
  6. // @homepage https://creatitees.info
  7. // @include *://*.chess.com/tactics/*
  8. // @run-at document-start
  9. // @version 0.9
  10. // ==/UserScript==
  11. var wDivClassesToHide = [
  12. "tactic-timer-container" ,
  13. "upgrade-to-remove-sidebar",
  14. "icon-circle-stop"
  15. ];
  16. var wDiveIDsToHide = [
  17. "special-upgrade-sidebar" ,
  18. ];
  19. function wHide() {
  20. var wElems = [];
  21. for ( var j = 0; j < wDivClassesToHide.length; ++j ) {
  22. var x11 = document.getElementsByClassName( wDivClassesToHide[ j ] );
  23. if ( !x11 ) { continue; }
  24. if ( !x11[0] ) { continue; }
  25. for ( var i = 0; i < x11.length; ++i ) { wElems.push( x11[ i ] ); }
  26. }
  27. for ( var j = 0; j < wDiveIDsToHide.length; ++j ) {
  28. var x11 = document.getElementById( wDiveIDsToHide[ j ] );
  29. if ( !x11 ) { continue; }
  30. wElems.push( x11 );
  31. }
  32. for ( var j = 0; j < wElems.length; ++j ) {
  33. wElems[ j ].setAttribute( "style" , "visibility: hidden !important" );
  34. }
  35. var no_text = document.getElementsByClassName( "info-label-label" );
  36. if ( no_text ) {
  37. if ( no_text[ 0 ] ) {
  38. no_text[ 0 ].textContent="BlessRNG";
  39. }
  40. }
  41. }
  42. (function() {
  43. wHide();
  44. setTimeout( function() { wHide(); } , 1000 );
  45. setTimeout( function() { wHide(); } , 2000 );
  46. setTimeout( function() { wHide(); } , 3000 );
  47. setTimeout( function() { wHide(); } , 4000 );
  48. setTimeout( function() { wHide(); } , 5000 );
  49. })();