您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
2021/7/7下午7:20:32
当前为
// ==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 // ==/UserScript== $('#exam_body').append('<div id = "anniu"><button type="button" id="anniu-sub">显示答案</button></div>') $('#exam_body').append('<div id = "daan"></div>') function getanswer_sk(){ if ($('.item_current').data('answer')){ $('#daan').html('<b><p style="color: red;font-size: 20px;">本题答案为:'+ $('.item_current').attr('data-answer')+'</p></b>') } }; $('#anniu-sub').click(function () { getanswer_sk(); }); $('.next-subject').click(function () { $('#daan').html('') setTimeout(function(){getanswer_sk();},1500); });