Biodo Answer Viewer

Show the correct ans of biodo test

目前為 2025-01-21 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name		Biodo Answer Viewer
// @namespace	http://tampermonkey.net/
// @version		v0.1
// @description	Show the correct ans of biodo test
// @author		PCwqyy
// @match		examin.biodo.com/examin/*
// @icon		https://cdn.luogu.com.cn/upload/usericon/567385.png
// @grant		none
// @license		MIT
// ==/UserScript==

(function() {
	var a;
	var ChoosedCell=document.getElementsByClassName('choose');
	try
	{
		for(var i in ChoosedCell)
			if(ChoosedCell[i].style.backgroundColor=='red')
				{
					a=i-(i%2*2-1);
					ChoosedCell[a].style.backgroundColor='green',
					ChoosedCell[a].style.color='white';
				}
	}
	catch(error)
	{
		console.error('err');
	}
	var Body=document.getElementsByTagName('body')[0];
	var Style111=document.createElement('style');
	Style111.textContent=`
		*{
			user-select: none;
		}
		.answercell td.choose {
			border: gray;
			background-color: white;
		}
		.answercell td.choose:hover {
			background-color: aliceblue;
			color: dodgerblue;
		}
		.answercell td:not(.choose) {
			padding: 0 2px !important;
		}
		table:not(.answercell) {
			border: none !important;
			padding: 2vh;
			background-color: azure !important;
			font-weight: normal !important;
			border-radius: 10px;
		}
		body>div {
			background-color: white !important;
			padding: 5vh 1vw !important;
			margin: 2vh 2vw !important;
			width: unset !important;
			box-shadow: gray 2px 2px 10px;
		}
	`
	Body.appendChild(Style111);
})();