您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Allows you to launch disabled games by pressing the ALT + L keyboard shortcut on the World Language Games homepage.
// ==UserScript== // @name World Language Games - Launch Disabled Games // @license MIT // @namespace https://github.com/engelthehyp/Automation-for-World-Language-Games // @version 2.1 // @description Allows you to launch disabled games by pressing the ALT + L keyboard shortcut on the World Language Games homepage. // @author https://github.com/engelthehyp/ // @match *://wlangames.net/* // @exclude *://wlangames.net/PlayGame.php* // @icon https://www.google.com/s2/favicons?domain=wlangames.net // @grant none // @run-at document-end // ==/UserScript== /* * Find 'Em - SingleConcentration(); * Double Find 'Em - DoubleConcentration(); * Car Puzzle - gotoPlayCarPuzzle(); */ (function () { 'use strict'; class NamedValue { constructor(name, value) { this.name = name; this.value = value; } toString() { return this.name; } } const games = [ new NamedValue("Find 'Em", window.SingleConcentration), new NamedValue("Double Find 'Em", window.DoubleConcentration), new NamedValue('Car Puzzle', window.gotoPlayCarPuzzle), ]; const launcherConfig = { games: games, prompt: 'Which disabled game should be launched?' + '\n\n' + games.map((item, index) => `${index + 1} - ${item}`).join('\n') + '\n\n' + 'Answering anything else will cancel.', }; function launcher(config) { const gameIndex = parseInt(prompt(config.prompt)) - 1; config.games[gameIndex]?.value(); } document.onkeyup = function (e) { e = e || window.event; // for IE to cover IEs window object if (e.altKey && e.which == 76) // ALT + L launcher(launcherConfig); }; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址