mimicker

alt+click to set point, ctrl+alt+click to cycle through points, click to stop

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         mimicker
// @author       fooksie
// @description  alt+click to set point, ctrl+alt+click to cycle through points, click to stop
// @match        http://cursors.io/
// @version 0.0.1.20141024144148
// @namespace https://greasyfork.org/users/4723
// ==/UserScript==
window.addEventListener("load", function() {
	var	mimic=[],
		index=0,
		lastdate=0,
		playing=true,
		canvas=document.getElementById("canvas");
	Date.prototype.valueOf=function() {
		return lastdate+=101;
		};
	function repeat() {
		if(playing) {
			var	prev=mimic[index++%mimic.length],
				event=document.createEvent("MouseEvents");
			event.initMouseEvent("mousedown", true, true, unsafeWindow, 0, 0, 0, prev[0], prev[1]);
			canvas.dispatchEvent(event);
			requestAnimationFrame(repeat);
			}
		};
	canvas.parentElement.addEventListener("click", function(event) {
		if(playing) {
			mimic=[];
			playing=false;
			}
		if(event.altKey) {
			var	prev=mimic[mimic.length-1];
			if(event.ctrlKey) {
				playing=true;
				requestAnimationFrame(repeat);
				}
			else {
				mimic.push([event.x, event.y]);
				}
			}
		});
	});