Chesstempo Hide Tactics Clock

Hides Tactics Clock on Chesstempo

  1. // ==UserScript==
  2. // @name Chesstempo Hide Tactics Clock
  3. // @namespace http://userstyles.org
  4. // @description Hides Tactics Clock on Chesstempo
  5. // @author 636597
  6. // @include *://*beta.chesstempo.com/chess-tactics/*
  7. // @run-at document-start
  8. // @version 0.1
  9. // ==/UserScript==
  10.  
  11. var clock_element = null;
  12. function hideClock() {
  13. clock_element.setAttribute("style", "visibility: hidden !important");
  14. console.log( "ChessTemp Hide Clock Loaded" );
  15. }
  16.  
  17. (function() {
  18. var ready = setInterval(function(){
  19. var x1 = document.querySelectorAll( '[role="timer"]' );
  20. if ( x1 ) { if ( x1[ 0 ] ) { clock_element = x1[0]; clearInterval( ready ); hideClock(); } }
  21. } , 2 );
  22. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址