OS体验优化

Improve the teriminal.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         OS体验优化
// @namespace    http://tampermonkey.net/
// @version      0.1.3
// @description  Improve the teriminal.
// @description  Disable the autocomplete of capche input.
// @author       BearHuchao
// @match        http://course.educg.net/
// @match        http://course.educg.net/*
// @grant        none
// ==/UserScript==

// ==UserScript==
// @name         OS体验优化
// @namespace    http://tampermonkey.net/
// @version      0.1.1
// @description  Improve the teriminal.
// @description  Disable the autocomplete of captcha input.
// @description  Allow to click on captcha pic to reload captcha.
// @author       BearHuchao
// @match        http://course.educg.net/
// @match        http://course.educg.net/*
// @grant        none
// ==/UserScript==

function actionFunction () {
    'use strict';
    var terminal = document.getElementById("terminado-container");
    if(terminal !== null) {
        terminal.style.width="100%";
    }
    var captcha = document.getElementById("captchaCode");
    if(captcha !== null) {
        captcha.autocomplete="off";
    }
    var captchaPic = document.getElementById("stuloginCaptcha_HelpLink");
    if(captchaPic !== null) {
        captchaPic.href="#";
        captchaPic.target="_self";
        captchaPic.addEventListener('click', () => {
            document.getElementById("stuloginCaptcha_ReloadLink").click();
        });
    }
}

actionFunction();