您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Photomath Expert autorefresher/reloader
// ==UserScript== // @name Photomath Desert Edition // @namespace http://tampermonkey.net/ // @version 1.0.0 // @description Photomath Expert autorefresher/reloader // @author You // @match https://portal.photomath.net/solve // @icon https://www.google.com/s2/favicons?sz=64&domain=photomath.net // @grant GM_xmlhttpRequest // @connect lasonotheque.org // @run-at document-start // @license MIT // ==/UserScript== function playFromBuffer( context, buffer ) { var source = context.createBufferSource(); source.buffer = buffer; source.connect( context.destination ); source.start( 0 ); } function playAlarm() { window.AudioContext = window.AudioContext || window.webkitAudioContext; let context = new AudioContext(); GM_xmlhttpRequest( { method: "GET", url: 'https://lasonotheque.org/UPLOAD/mp3/1685.mp3', // Some free alarm audio responseType: 'arraybuffer', onload: function( response ) { try { console.log("Here"); context.decodeAudioData( response.response, buffer => playFromBuffer( context, buffer ), console.err ); } catch( e ) { console.error( e ); } } } ); } (function() { 'use strict'; let loop = setInterval(() => { let refreshButton = document.getElementsByClassName("refresh-button")[0]; if (refreshButton == undefined) { playAlarm(); // Play the alarm once a task appears... console.log("Button not found, so probably loading or taking a new task") clearInterval(loop); } else { refreshButton.click() } },5000) // Change the reload waiting time here })();