您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes Auto Scrolling on the Japanese learning site 'EtoEto'
// ==UserScript== // @name EtoEto Remove Auto Scroll // @namespace etoetoautoscrollremoverKK // @author Kai Krause <[email protected]> // @description Removes Auto Scrolling on the Japanese learning site 'EtoEto' // @match http://etoeto.com/*books/*episodes/* // @match https://etoeto.com/*books/*episodes/* // @version 1.1 // @grant none // ==/UserScript== window.addEventListener('load', function() { //Destroy the Default Auto Scroll $.speed = {}; window.scroll = function(e) { $("html, body").stop(1,0); } //Re-implement FocusKey window.onkeydown = function(e) { e = e || window.event; if (e.keyCode == 70) { var focusPoint = document.getElementsByClassName("sentence-highlight")[0].offsetTop; window.scrollTo(0, focusPoint+100); } }; }, false);