Skip to content

Instantly share code, notes, and snippets.

@dd-han
dd-han / jsScript.js
Last active August 17, 2018 13:51
kancolle-best-window
document.getElementById('area-game').style['text-align'] = 'left';
var borderX = (window.outerWidth - window.innerWidth);
var borderY = (window.outerHeight - window.innerHeight);
var frame = document.getElementById('game_frame');
var rectHeight = frame.getBoundingClientRect().top;
var toY = rectHeight + 16 + window.pageYOffset;
/*
var toX = (document.getElementById('adFlashWrap').style.width - document.getElementById('maintenanceswf').style.width) / 2;
@dd-han
dd-han / README.md
Created August 17, 2018 16:09
新版的 KanColle Viewer 工具,配合 1366x768 的螢幕 +Firefox

KanColle Custom Viewer

因為之前用 VBS 寫給 IE 的 Scritp 不能用(IE11跑不出畫面),Chrome 在沒有顯卡的 VM 裡面超慢,所以就用 Firefox 把系統兜起來了。

設定

Firefox 需要調整 about:config 裡面的幾個參數:

  • dom.disable_window_open_feature.status
  • dom.disable_window_open_feature.resizable
  • dom.disable_window_open_feature.location
@dd-han
dd-han / build-nginx.ps1
Last active March 30, 2021 04:57
Build Nginx on Windows Script (PowerShell)
$PCRE_VERSION='8.42'
$ZLIB_VERSION='1.2.11'
$OPENSSL_VERSION='1.0.2p'
$NGINX_VERSION='release-1.15.3'
$NGINX_RTMP_VERSION='master'
# using standlone minGW
#$MSYS_PATH='C:\MinGW\msys\1.0\bin'
# using gitbash
$MSYS_PATH='C:\Program Files\Git\usr\bin'