World Language Games - Automation for "Ping-Pong" (Completely Natural)

Sends the signal for correct answer no matter what answer is picked (Correct Answer, Wrong Answer, No Answer) and automatically ends the game once 32 to 35 vollies have been made.

目前为 2022-06-25 提交的版本。查看 最新版本

// ==UserScript==
// @name         World Language Games - Automation for "Ping-Pong" (Completely Natural)
// @license      MIT
// @namespace    https://github.com/engel03455/Automation-for-World-Language-Games
// @version      1.3
// @description  Sends the signal for correct answer no matter what answer is picked (Correct Answer, Wrong Answer, No Answer) and automatically ends the game once 32 to 35 vollies have been made.
// @author       http://www.github.com/engel03455
// @match        *://wlangames.net/PingPong.php*
// @icon         https://www.google.com/s2/favicons?domain=wlangames.net
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
	function getRandomInt(min, max) {
		min = Math.ceil(min);
		max = Math.floor(max);
		return Math.floor(Math.random() * (max - min + 1)) + min;
	}

	var naturalEnding = getRandomInt(32,35);
	
	window.CheckAnswer = function() {
		var guesses = document.getElementById("Guesses").innerHTML;
		return (parseInt(guesses) >= naturalEnding) ? (window.WrongAnswer) : (window.WrongAnswer - 1);
	}
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址