Greasy Fork is available in English.

EtoEto Remove Auto ScrollX

Removes Auto Scrolling on the Japanese learning site 'EtoEto'

Version vom 2017-11-16 17:20:12 UTC. Aktuellste Version

// ==UserScript==
// @name        EtoEto Remove Auto ScrollX
// @namespace   etoetoautoscrollremoverKK
// @author      Kai Krause <kaikrause95@gmail.com>
// @description Removes Auto Scrolling on the Japanese learning site 'EtoEto'
// @match	http://etoeto.com/*books/*episodes/*
// @match	https://etoeto.com/*books/*episodes/*
// @version     1.2
// @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);