Small improvements of online-go.com
当前为
// ==UserScript==
// @name OGS Utilities
// @description Small improvements of online-go.com
// @author TPReal
// @namespace https://gf.qytechs.cn/users/9113
// @version 0.3.2
// @match *://online-go.com/*
// @grant none
// ==/UserScript==
var TITLE_MATCHER=/^(?:\[\d+\] )?(.*)$/;
var updateTitle=function(){
var value=$("#turn-notification-indicator").text();
var prefix="";
if(value&&value!=="0")
prefix="["+value+"] ";
var baseTitle;
baseTitle=TITLE_MATCHER.exec(document.title)[1];
document.title=prefix+baseTitle;
};
var isFullscreen=function(){
return screen.width==window.outerWidth&&screen.height==window.outerHeight;
};
var fullscreenStyle=$("<style> \
#game-main-container > #game-controls { \
display:none; \
} \
</style>").appendTo(document.head)[0];
$("<style> \
.move-control i.fa { \
font-size: 2em; \
} \
span.move-control[ng-click='nav_first()'], \
span.move-control[ng-click='nav_prev_10()'], \
span.move-control[ng-click='nav_play_pause()'], \
span.move-control[ng-click='nav_next_10()'], \
span.move-control[ng-click='nav_next()'] { \
display: none; \
} \
</style>").appendTo(document.head);
var updateFullscreenStyle=function(){
fullscreenStyle.sheet.disabled=!isFullscreen();
};
var tick=function(){
updateTitle();
updateFullscreenStyle();
setTimeout(tick,1000);
};
tick();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址