It does the thing. Takes a few seconds.
当前为
// ==UserScript==
// @name [Neopets] Lunar Temple Solver
// @namespace https://gf.qytechs.cn/en/scripts/446046
// @version 0.4
// @description It does the thing. Takes a few seconds.
// @author Piotr Kardovsky
// @match http*://www.neopets.com/shenkuu/lunar/?show=puzzle
// @icon https://www.neopets.com//favicon.ico
// @grant none
// @license MIT
// ==/UserScript==
(function() {
'use strict';
// Set to true to autoclick. ~2 second delay to simulate "figuring it out".
const AUTO = false;
// window.addEventListener('load', () => {
if (document.querySelector('input[value="0"]') != undefined) {
let angle = parseInt(swf.attributes.swf.match(/Kreludor=(\d+)/)[1]);
let lnt = [11, 33, 56, 78, 101, 123, 146, 168, 191, 213, 236, 258, 281, 303, 326, 348, 360];
let idx = lnt.findIndex((i) => { return angle <= i; });
idx = idx == 16 ? 8 : idx < 8 ? idx + 8 : idx - 8;
let ans = document.querySelector(`.content input[value="${idx}"]`);
if (AUTO === true) {
setTimeout(() => {
ans.checked = true;
document.querySelector('form[action="results.phtml"]').submit();
}, 1800 + Math.random() * 600);
} else {
ans.parentNode.style.background = "#000";
}
}
// });
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址