Skip to content

Instantly share code, notes, and snippets.

@astj
Last active December 30, 2015 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astj/7866938 to your computer and use it in GitHub Desktop.
Save astj/7866938 to your computer and use it in GitHub Desktop.
艦これでCommand-Wとか誤爆しがちだからUserScript書いた
// ==UserScript==
// @name KanColleLeavePreventer
// @namespace http://astj.hatenablog.com/
// @include http://www.dmm.com/netgame/social/-/gadgets/=/app_id=854854/
// ==/UserScript==
window.addEventListener('beforeunload', function (e) {
return '艦これ閉じようとしてるよ?';
}, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment