您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
按下方向键右,可直接跳到下一题
- // ==UserScript==
- // @name weiqi auto jump
- // @namespace https://www.101weiqi.com/qday/
- // @version 1.0
- // @description 按下方向键右,可直接跳到下一题
- // @author Lennon
- // @match https://*.101weiqi.com/*
- // @require http://code.jquery.com/jquery-2.1.1.min.js
- // @run-at document-end
- // @icon https://deepmind.com/static/v0.0.0/appIcons/favicon.png
- // ==/UserScript==
- (function() {
- 'use strict';
- var elementButton = $('a.btn-info');
- $(document).keyup(function(e) {
- switch (e.keyCode) {
- // arrow left
- case 37:
- elementButton[0].click();
- break;
- // arrow right
- case 39:
- if($('div[ng-click="startnext()"]').length) {
- $('div[ng-click="startnext()"]').click();
- } else if ($(elementButton[1]).length) {
- elementButton[1].click();
- } else if ($('div.huati_lei > span > a').attr('href').length) {
- location.href = $('div.huati_lei > span > a').attr('href');
- }
- break;
- }
- return !0
- })
- })();