您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自动回答必应首页的测试题
当前为
// ==UserScript== // @name Bing Homepage Quiz // @name:zh-CN 必应首页测试 // @namespace http://tampermonkey.net/ // @version 0.1 // @description Automatically answers Bing Homepage Quiz // @description:zh-CN 自动回答必应首页的测试题 // @author PRO // @match https://cn.bing.com/* // @icon http://bing.com/favicon.ico // @grant none // @license gpl-3.0 // ==/UserScript== (function() { 'use strict'; function selectAnswer() { let quiz = document.getElementById("wkCanvas"); if (!quiz) return; let next = quiz.querySelector("input[id^=nextQuestionbtn]"); if (next && next.checkVisibility()) next.click(); let answers = quiz.querySelectorAll("div[id^=QuestionPane] a.wk_choicesInstLink div.b_hPanel div.wk_choiceMaxWidth"); for (let answer of answers) { if (answer.querySelector("div.wk_hideCompulsary")) { answer.click(); break; } } } window.setTimeout(selectAnswer, Math.random() * 1000 + 1000); })();