您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
// ==UserScript== // @name Auto Answer ComplianceOnline // @namespace http://tampermonkey.net/ // @version 0.5 // @description try to take over the world! // @author Yich Lin // @include /^https?://.*complianceonline.admin-agylia.com/.*$/ // @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js // @grant none // ==/UserScript== (function() { 'use strict'; if (window.top != window.self) { //直接跳轉到測驗頁面 會有些persistence data不能保留 //var url = window.location.href; //if(url.indexOf("a001_")>-1 && url.indexOf("a001_test_your_understanding_test") ===-1){ //ObjLayerActionGoTo('a001_test_your_understanding_test_start_tyu.html'); // return; //} var html = $("html").html(); var regex = /The correct answer is \w+/; var match = regex.exec(html); //如果有match到解答 if(match !=null){ alert(match[0]); } } })();