Last active
December 15, 2015 02:29
-
-
Save furugomu/5187741 to your computer and use it in GitHub Desktop.
ミリオンライブのアニメーションを全てスキップするグリモン(Chrome用)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name million live | |
// @include http://app.ip.bn765.com/app/index.php/* | |
// @include http://imas.gree-apps.net/app/index.php/* | |
// ==/UserScript== | |
var script = document.createElement('script'); | |
var f = function() { | |
var handler = function(e) { | |
if (!e.ctrlKey) return; | |
if (window._root && _root.next_url) { | |
location.href = _root.next_url; | |
document.removeEventListener("keydown", handler, false); | |
} | |
} | |
document.addEventListener("keydown", handler, false); | |
} | |
script.textContent = '('+f.toString()+')()'; | |
document.body.appendChild(script); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
エロゲ風に、コントロールキーを押している間だけスキップするようにした。