// ==UserScript== // @name 多彩贵州党史答题 // @namespace Violentmonkey Scripts // @match https://*.gog.cn/* // @grant none // @version 1.0 // @require https://cdn.staticfile.org/jquery/1.9.1/jquery.min.js // @author -Lightr // @description 2021/7/7下午7:20:32 // @downloadURL none // ==/UserScript== $('#exam_body').append('
') $('#exam_body').append('
') function getanswer_sk(){ if ($('.item_current').data('answer')){ $('#daan').html('

本题答案为:'+ $('.item_current').attr('data-answer')+'

') } }; $('#anniu-sub').click(function () { getanswer_sk(); }); $('.next-subject').click(function () { $('#daan').html('') setTimeout(function(){getanswer_sk();},1500); });