Hides Chess.com Tactics Timer Clock

chessComHideTacticsTimerClock

当前为 2018-04-22 提交的版本,查看 最新版本

  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.6
  10. // ==/UserScript==
  11. var wDivClassesToHide = [
  12. "tactic-timer-container" ,
  13. "upgrade-to-remove-sidebar"
  14. ];
  15. function wHide() {
  16. for ( var j = 0; j < wDivClassesToHide.length; ++j ) {
  17. var x11 = document.getElementsByClassName( wDivClassesToHide[ j ] );
  18. if ( !x11 ) { return; }
  19. if ( !x11[0] ) { return; }
  20. for ( var i = 0; i < x11.length; ++i ) {
  21. x11[ i ].setAttribute( "style" , "visibility: hidden !important" );
  22. }
  23. }
  24. }
  25. (function() {
  26. wHide();
  27. setTimeout( function() { wHide(); } , 1000 );
  28. setTimeout( function() { wHide(); } , 2000 );
  29. setTimeout( function() { wHide(); } , 3000 );
  30. setTimeout( function() { wHide(); } , 4000 );
  31. setTimeout( function() { wHide(); } , 5000 );
  32. })();