Last active
October 8, 2018 14:13
-
-
Save okj579/a52357ad2c6e6d1bfd6079ce45b07bca to your computer and use it in GitHub Desktop.
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 imos auto-scroll | |
// @version 0.2 | |
// @match https://www.imos.net/ | |
// @downloadURL https://gist.github.com/okj579/a52357ad2c6e6d1bfd6079ce45b07bca/raw/imos-autoscroll.user.js | |
// @grant none | |
// ==/UserScript== | |
setInterval(function(){ | |
var $a = $('.menu-custom_start_fragment li.active + li > a'); | |
if (!$a.length) { | |
$a = $('.menu-custom_start_fragment li:first > a'); | |
} | |
$a.trigger('click'); | |
}, 10000); | |
(function(k,o,n,a,m,i){n.keydown(function(e){e.which!=k[o]?o=0:++o==k.length&&n.append(a)})})([38,38,40,40,37,39,37,39,66,65],0,$('body'),'<div style="background:url(//bit.ly/2npNj1S);position:fixed;left:0;right:0;bottom:0;height:128px;z-index:999999">'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment