您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Attempts to detect when you're finished with the vaccination "queue" on the ontario vaccine website
// ==UserScript== // @name Ontario vaccine notification // @namespace Violentmonkey Scripts // @match https://ontariomoh.queue-it.net/ // @grant none // @version 1.1 // @author AS // @grant GM_notification // @description Attempts to detect when you're finished with the vaccination "queue" on the ontario vaccine website // ==/UserScript== // String to search for whichi s present in the "waiting" state var SEARCH_STRING = "Your turn started"; // Div to search var SEARCH_ID = "content"; var INTERVAL = 5000; GM_notification({ text: "Started watching vaccination page for changes" }) var interval_id = setInterval(function () { var text = document.getElementById(SEARCH_ID).innerText if(text.search(SEARCH_STRING) >= 0) { // Text is missing GM_notification({ title: "Detected change in vaccination page.", text: "Please check the page. Click this notification to stop scanning", onclick: function () { clearInterval(interval_id) }}) } }, INTERVAL)